![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::int_adapter — Adapter to create integer types with +-infinity, and not a value.
// In header: <boost/date_time/int_adapter.hpp> template<typename int_type_> class int_adapter { public: // types typedef ; // construct/copy/destruct (); // public member functions () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; () ; template<typename rhs_type> () ; () ; template<typename rhs_type> () ; () ; () ; () ; () ; () ; () ; () ; // public static functions (); (); (); (); (); (); (); (); (); (); (); (); (); // private member functions () ; () ; () ; };
This class is used internally in counted date/time representations. It adds the floating point like features of infinities and not a number. It also provides mathmatical operations with consideration to special values following these rules:
+
int_adapter public member functions() ;
() ;
() ;
() ;
() ;
( rhs) ;
( rhs) ;
( rhs) ;
( rhs) ;
( rhs) ;
( rhs) ;
( rhs) ;
() ;
() ;Returns either special value type or is_not_special.
template<typename rhs_type> ( rhs) ;
Operator allows for adding dissimilar int_adapter types. The return type will match that of the the calling object's type
( rhs) ;
template<typename rhs_type> ( rhs) ;
Operator allows for subtracting dissimilar int_adapter types. The return type will match that of the the calling object's type
( rhs) ;
( rhs) ;
( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results.
( rhs) ;
( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results.
( rhs) ;
( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results.