Remove handle #7

Merged
CHatingPython merged 11 commits from remove-handle into master 2026-06-03 12:14:38 +00:00
Showing only changes of commit 3491f9aebb - Show all commits
+16
View File
@@ -199,6 +199,22 @@ public:
*/
bool operator!=(const result& rhs) const { return !this->operator==(rhs); }
/**
* @brief Compares a result with a value for equality.
*
* @param rhs Value to compare against.
* @return true if the values are equal.
*/
bool operator==(const value_type& rhs) const { return !m_error && !rhs.m_error && m_value.result == rhs; }
/**
* @brief Compares a result with a value for inequality.
*
* @param rhs Value to compare against.
* @return true if the values are not equal.
*/
bool operator!=(const value_type& rhs) const { return !this->operator==(rhs); }
/**
* @brief Returns a reference to value.
*