Macros
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:

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...
 

Detailed Description

Author
Andrey Semashev
Date
08.03.2009

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.

Macro Definition Documentation

◆ BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL

#define BOOST_CONSTEXPR_EXPLICIT_OPERATOR_BOOL ( )
Value:
BOOST_FORCEINLINE BOOST_CONSTEXPR explicit operator bool () const BOOST_NOEXCEPT\
{\
return !this->operator! ();\
}

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.

◆ BOOST_EXPLICIT_OPERATOR_BOOL

#define BOOST_EXPLICIT_OPERATOR_BOOL ( )
Value:
BOOST_FORCEINLINE explicit operator bool () const\
{\
return !this->operator! ();\
}

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.

◆ BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT

#define BOOST_EXPLICIT_OPERATOR_BOOL_NOEXCEPT ( )
Value:
BOOST_FORCEINLINE explicit operator bool () const BOOST_NOEXCEPT\
{\
return !this->operator! ();\
}

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.

operator!
bool operator!() const BOOST_NOEXCEPT
Definition: operator_bool.hpp:61
BOOST_CONSTEXPR
#define BOOST_CONSTEXPR
Definition: suffix.hpp:961
BOOST_NOEXCEPT
#define BOOST_NOEXCEPT
Definition: suffix.hpp:938
BOOST_FORCEINLINE
#define BOOST_FORCEINLINE
Definition: suffix.hpp:595


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:56:20