Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::system::error_code Class Reference

#include <error_code.hpp>

Public Types

typedef void(* unspecified_bool_type )()
 

Public Member Functions

 error_code () BOOST_NOEXCEPT
 
 error_code (int val, const error_category &cat) BOOST_NOEXCEPT
 
template<class ErrorCodeEnum >
 error_code (ErrorCodeEnum e, typename boost::enable_if< is_error_code_enum< ErrorCodeEnum > >::type *=0) BOOST_NOEXCEPT
 
void assign (int val, const error_category &cat) BOOST_NOEXCEPT
 
template<typename ErrorCodeEnum >
boost::enable_if
< is_error_code_enum
< ErrorCodeEnum >, error_code >
::type
operator= (ErrorCodeEnum val) BOOST_NOEXCEPT
 
void clear () BOOST_NOEXCEPT
 
int value () const BOOST_NOEXCEPT
 
const error_categorycategory () const BOOST_NOEXCEPT
 
error_condition default_error_condition () const BOOST_NOEXCEPT
 
std::string message () const
 
 operator unspecified_bool_type () const BOOST_NOEXCEPT
 
bool operator! () const BOOST_NOEXCEPT
 

Static Public Member Functions

static void unspecified_bool_true ()
 

Friends

bool operator== (const error_code &lhs, const error_code &rhs) BOOST_NOEXCEPT
 
bool operator< (const error_code &lhs, const error_code &rhs) BOOST_NOEXCEPT
 

Member Typedef Documentation

typedef void(* boost::system::error_code::unspecified_bool_type)()

Constructor & Destructor Documentation

boost::system::error_code::error_code ( )
inline
boost::system::error_code::error_code ( int  val,
const error_category cat 
)
inline
template<class ErrorCodeEnum >
boost::system::error_code::error_code ( ErrorCodeEnum  e,
typename boost::enable_if< is_error_code_enum< ErrorCodeEnum > >::type = 0 
)
inline

Member Function Documentation

void boost::system::error_code::assign ( int  val,
const error_category cat 
)
inline
const error_category& boost::system::error_code::category ( ) const
inline
void boost::system::error_code::clear ( void  )
inline
error_condition boost::system::error_code::default_error_condition ( ) const
inline
std::string boost::system::error_code::message ( ) const
inline
boost::system::error_code::operator unspecified_bool_type ( ) const
inline
bool boost::system::error_code::operator! ( ) const
inline
template<typename ErrorCodeEnum >
boost::enable_if<is_error_code_enum<ErrorCodeEnum>, error_code>::type& boost::system::error_code::operator= ( ErrorCodeEnum  val)
inline
static void boost::system::error_code::unspecified_bool_true ( )
inlinestatic
int boost::system::error_code::value ( ) const
inline

Friends And Related Function Documentation

bool operator< ( const error_code lhs,
const error_code rhs 
)
friend
bool operator== ( const error_code lhs,
const error_code rhs 
)
friend

The documentation for this class was generated from the following file: