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 = CharT, CharT> > > 
class special_values_formatter {
public:
  // types
  typedef CharT > ;    
  typedef CharT                      ;      
  typedef  ;

  // construct/copy/destruct
  ();
  (const const *, const const *);
  (typename , 
                           typename );

  // public member functions
  OutItrT (OutItrT, const ) ;

  // public data members
  static const  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. (const const * begin, 
                             const const * 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. (typename  beg, 
                             typename  end);

special_values_formatter public member functions

  1. OutItrT (OutItrT next, 
                        const  value) ;

PrevUpHomeNext