Class template wrapping_int2boost::date_time::wrapping_int2 — A wrapping integer used to wrap around at the top (WARNING: only instantiate with a signed type). Synopsistemplate<typename int_type_, int_type_ wrap_min, int_type_ wrap_max> class wrapping_int2 { public: // types typedef int_type_ int_type; // construct/copy/destruct wrapping_int2(int_type); // public static functions static int_type wrap_value() ; static int_type min_value() ; // public member functions int_type as_int() const; operator int_type() const; int_type add(int_type) ; int_type subtract(int_type) ; // private member functions int_type calculate_wrap(int_type) ; }; DescriptionBad name, quick impl to fix a bug -- fix later!! This allows the wrap to restart at a value other than 0.
|