A wrapping integer used to wrap around at the top (WARNING: only instantiate with a signed type)
More...
template<typename int_type_, int_type_ wrap_min, int_type_ wrap_max>
class boost::date_time::wrapping_int2< int_type_, wrap_min, wrap_max >
A wrapping integer used to wrap around at the top (WARNING: only instantiate with a signed type)
Bad name, quick impl to fix a bug – fix later!! This allows the wrap to restart at a value other than 0.
template<typename int_type_ , int_type_ wrap_min, int_type_ wrap_max>
template<typename IntT >
Add, return number of wraps performed.
The sign of the returned value will indicate which direction the wraps went. Ex: add a negative number and wrapping under could occur, this would be indicated by a negative return value. If wrapping over took place, a positive value would be returned
template<typename int_type_ , int_type_ wrap_min, int_type_ wrap_max>
template<typename IntT >
Subtract will return '-d' if wrapping under took place ('d' is the number of wraps)
The sign of the returned value will indicate which direction the wraps went. Ex: subtract a negative number and wrapping over could occur, this would be indicated by a positive return value. If wrapping under took place, a negative value would be returned