Represent a day of the month (range 1 - 31) More...
#include <greg_day.hpp>
Public Types | |
typedef value_policies::value_type | value_type |
Public Member Functions | |
greg_day (unsigned short day_of_month) | |
unsigned short | as_number () const |
operator unsigned short () const | |
operator value_type () const | |
Coerce into the representation type. More... | |
Static Public Member Functions | |
static value_type max | BOOST_PREVENT_MACRO_SUBSTITUTION () |
Return the max allowed value (traits method) More... | |
static value_type min | BOOST_PREVENT_MACRO_SUBSTITUTION () |
Return the min allowed value (traits method) More... | |
Protected Attributes | |
value_type | value_ |
Represent a day of the month (range 1 - 31)
This small class allows for simple conversion an integer value into a day of the month for a standard gregorian calendar. The type is automatically range checked so values outside of the range 1-31 will cause a bad_day_of_month exception
|
inherited |
|
inline |
|
inline |
References boost::CV::constrained_value< value_policies >::value_.
Referenced by boost::serialization::save().
|
inlinestaticinherited |
Return the max allowed value (traits method)
References boost::accumulators::extract::max.
|
inlinestaticinherited |
Return the min allowed value (traits method)
References boost::accumulators::extract::min.
|
inline |
|
inlineinherited |
Coerce into the representation type.
References boost::CV::constrained_value< value_policies >::value_.
|
protectedinherited |