Class template wrapping_int2
boost::date_time::wrapping_int2 — A wrapping integer used to wrap around at the top.
Synopsis
Description
Bad name, quick impl to fix a bug -- fix later!! This allows the wrap to restart at a value other than 0. Currently this only works if wrap_min == 1
wrapping_int2
construct/copy/destruct
-
wrapping_int2(int_type v);
If initializing value is out of range of [wrap_min, wrap_max], value will be initialized to closest of min or max
wrapping_int2
public member functions
int_type as_int() const;
operator int_type() const;
int_type add(int_type v) ;
int_type subtract(int_type v) ;
wrapping_int2
public static functions
unsigned long wrap_value() ;
unsigned long min_value() ;