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

Class template first_kday_after

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 first_kday_after

boost::date_time::first_kday_after — Calculate something like "First Sunday after Jan 1,2002.

Synopsis

// In header: <boost/date_time/date_generators.hpp>
template<typename date_type> 
class first_kday_after {
public:
  // types
  typedef date_type::calendar_type        calendar_type;   
  typedef calendar_type::day_of_week_type day_of_week_type;
  typedef date_type::duration_type        duration_type;   
  // construct/copy/destruct
  first_kday_after(day_of_week_type);
  // public member functions
  date_type get_date(date_type) const;
  day_of_week_type day_of_week() const;
};

Description

Генератор дат, который берет дату и находит день после

typedef boost::date_time::first_kday_after<date> firstkdayafter;
firstkdayafter fkaf(Monday);
fkaf.get_date(date(2002,Feb,1));

first_kday_after public construct/copy/destruct

  1. first_kday_after(day_of_week_type dow;

first_kday_after public member functions

  1. date_type get_date(date_type start_day) const;
    Возврат следующего заданного дня.
  2. day_of_week_type day_of_week(>const;

PrevUpHomeNext

Статья Class template first_kday_after раздела 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-19 22:14:13/0.0079140663146973/1