Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
explicit_operator_bool.hpp File Reference
#include <boost/config.hpp>
Include dependency graph for explicit_operator_bool.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#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...
 
#define BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL()
 The macro defines a constexpr explicit operator of conversion to bool. More...
 

Macro Definition Documentation

#define BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL ( )
Value:
{\
return !this->operator! ();\
}
detail::pred_notF< PredT > operator!(const predicate_facade< PredT > &Pred)
predicate negation operator
Definition: classification.hpp:284
void const
Definition: is_convertible.hpp:460
#define BOOST_NOEXCEPT
Definition: suffix.hpp:916
#define BOOST_FORCEINLINE
Definition: suffix.hpp:583
#define BOOST_CONSTEXPR
Definition: suffix.hpp:939

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.

#define BOOST_EXPLICIT_OPERATOR_BOOL ( )
Value:
BOOST_FORCEINLINE explicit operator bool () const\
{\
return !this->operator! ();\
}
detail::pred_notF< PredT > operator!(const predicate_facade< PredT > &Pred)
predicate negation operator
Definition: classification.hpp:284
void const
Definition: is_convertible.hpp:460
#define BOOST_FORCEINLINE
Definition: suffix.hpp:583

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.

#define BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT ( )
Value:
BOOST_FORCEINLINE explicit operator bool () const BOOST_NOEXCEPT\
{\
return !this->operator! ();\
}
detail::pred_notF< PredT > operator!(const predicate_facade< PredT > &Pred)
predicate negation operator
Definition: classification.hpp:284
void const
Definition: is_convertible.hpp:460
#define BOOST_NOEXCEPT
Definition: suffix.hpp:916
#define BOOST_FORCEINLINE
Definition: suffix.hpp:583

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.