Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template special_values_formatter

boost::date_time::special_values_formatter — Class that provides generic formmatting ostream formatting for special values.

Synopsis

// In header: <boost/date_time/special_values_formatter.hpp>

template<typename CharT, 
         typename OutItrT> 
class special_values_formatter {
public:
  // types
  typedef  ;    
  typedef                       ;      
  typedef  ;

  // construct/copy/destruct
  ();
  (, );
  (, 
                           );

  // public member functions
   (, ) ;

  // public data members
  static  default_special_value_names;  // Storage for the strings used to indicate special values. 
};

Description

This class provides for the formmating of special values to an output stream. In particular, it produces strings for the values of negative and positive infinity as well as not_a_date_time.

While not a facet, this class is used by the date and time facets for formatting special value types.

special_values_formatter public construct/copy/destruct

  1. ();
    Construct special values formatter using default strings.

    Default strings are not-a-date-time -infinity +infinity

  2. ( begin, 
                              end);
    Construct special values formatter from array of strings.

    This constructor will take pair of iterators from an array of strings that represent the special values and copy them for use in formatting special values.

  3. ( beg, 
                              end);

special_values_formatter public member functions

  1.  ( next, 
                         value) ;

PrevUpHomeNext