Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

Class template year_functor

boost::date_time::year_functor — Functor to iterate by a year adjusting for leap years.

Synopsis

template<typename date_type> 
class year_functor {
public:
// types
typedef date_type::duration_type duration_type;

// construct/copy/destruct
year_functor(int);

// public member functions
duration_type get_offset(const date_type &) const;
duration_type get_neg_offset(const date_type &) const;
};

Description

year_functor construct/copy/destruct

  1. year_functor(int f);

year_functor public member functions

  1. duration_type get_offset(const date_type & d) const;
  2. duration_type get_neg_offset(const date_type & d) const;
Copyright 2001-2005 CrystalClear Software, Inc

PrevUpHomeNext