Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Prev Up HomeNext

bool operator==(const basic_result<A, B, C> &) const

Returns true if this result compares equal to the other result. Comparison is done using operator== on either value_type or error_type if the currently chosen state is the same for both results, otherwise false is returned.

Requires: operator== must be a valid expression between value_type and A, and between error_type and B. If value_type is void, then so must be A; similarly for error_type and B.

Complexity: Whatever the underlying operator== have. Constexpr and noexcept of underlying operations is propagated.

Guarantees: None.

Free function alias: There is a free function bool operator==(const basic_result<A, B, C> &, const basic_outcome<A, B, C, D> &) which forwards perfectly to this function, by reversing the operands.

Last revised: February 01, 2019 at 15:52:57 UTC


Prev Up HomeNext