Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template month_functor

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Library Reference

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

PrevUpHomeNext

Class template month_functor

boost::date_time::month_functor — Provides calculation to find next nth month given a date.

Synopsis

// In header: <boost/date_time/adjust_functors.hpp>
template<typename date_type> 
class month_functor {
public:
  // types
  typedef date_type::duration_type duration_type;
  typedef date_type::calendar_type cal_type;     
  typedef cal_type::ymd_type       ymd_type;     
  typedef cal_type::day_type       day_type;     
  // construct/copy/destruct
  month_functor(int);
  // public member functions
  duration_type get_offset(const date_type &) const;
  duration_type get_neg_offset(const date_type &) const;
};

Description

Эта функция настройки обеспечивает логику для «месячного» продвижения по календарю на основе ymd. Политика, которую он использует для обработки несуществующего конца месячных дней, заключается в том, чтобы вернуться к последнему дню месяца. Кроме того, если дата начала является последним днем месяца, этот функтор будет пытаться приспособиться к концу месяца.

month_functor public construct/copy/destruct

  1. month_functor(int f;

month_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;
    Возвращает отрицательную продолжительность_type.

PrevUpHomeNext

Статья Class template month_functor раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Library Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 03:11:53/0.0033271312713623/0