Boost.Locale
boost::locale::date_time_period_set Class Reference

This class represents a set of periods. More...

#include <boost/locale/date_time.hpp>

Public Member Functions

 date_time_period_set ()=default
 Default constructor - empty set.
 
 date_time_period_set (period::period_type f)
 Create a set of single period with value 1.
 
 date_time_period_set (const date_time_period &fl)
 Create a set of single period fl.
 
void add (date_time_period f)
 Append date_time_period f to the set.
 
size_t size () const
 Get number of items in list.
 
const date_time_periodoperator[] (size_t n) const
 Get item at position n the set, n should be in range [0,size)
 

Detailed Description

This class represents a set of periods.

It is generally created by operations on periods: 1995*year + 3*month + 1*day. Note: operations are not commutative.


The documentation for this class was generated from the following file: