#include <boost/config.hpp>
Go to the source code of this file.
Macros | |
#define | BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL() |
The macro defines a constexpr explicit operator of conversion to bool . More... | |
#define | BOOST_EXPLICIT_OPERATOR_BOOL() |
The macro defines an explicit operator of conversion to bool . More... | |
#define | BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT() |
The macro defines a noexcept explicit operator of conversion to bool . More... | |
This header defines a compatibility macro that implements an unspecified bool
operator idiom, which is superseded with explicit conversion operators in C++11.
Definition in file explicit_operator_bool.hpp.
#define BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL | ( | ) |
The macro defines a constexpr explicit operator of conversion to bool
.
The macro should be used inside the definition of a class that has to support the conversion. The class should also implement operator!
, in terms of which the conversion operator will be implemented.
Definition at line 62 of file explicit_operator_bool.hpp.
#define BOOST_EXPLICIT_OPERATOR_BOOL | ( | ) |
The macro defines an explicit operator of conversion to bool
.
The macro should be used inside the definition of a class that has to support the conversion. The class should also implement operator!
, in terms of which the conversion operator will be implemented.
Definition at line 36 of file explicit_operator_bool.hpp.
#define BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT | ( | ) |
The macro defines a noexcept explicit operator of conversion to bool
.
The macro should be used inside the definition of a class that has to support the conversion. The class should also implement operator!
, in terms of which the conversion operator will be implemented.
Definition at line 49 of file explicit_operator_bool.hpp.