The class represents attribute value visitation result. More...
#include <value_visitation.hpp>
Public Types | |
enum | error_code { ok, value_not_found, value_has_invalid_type } |
Error codes for attribute value visitation. More... | |
Public Member Functions | |
BOOST_CONSTEXPR | visitation_result (error_code code=ok) BOOST_NOEXCEPT |
Initializing constructor. More... | |
bool | operator! () const BOOST_NOEXCEPT |
Checks if the visitation was successful. More... | |
error_code | code () const BOOST_NOEXCEPT |
The class represents attribute value visitation result.
The main purpose of this class is to provide a convenient interface for checking whether the attribute value visitation succeeded or not. It also allows to discover the actual cause of failure, should the operation fail.
|
inline |
Initializing constructor.
Creates the result that is equivalent to the specified error code.
|
inline |
|
inline |
Checks if the visitation was successful.
true
if the value was visited successfully, false
otherwise.Checks if the visitation was unsuccessful.
false
if the value was visited successfully, true
otherwise. References ok.