PrevUpHomeNext

Class leapyear_weekday_iterator

fd::gregorian::leapyear_weekday_iterator — Leap year level iterator, which stays at the weekday of month specified at construction time, with the ability to add an optional number of days to the resulting date.

Synopsis

// In header: <fd/date_iterators.h>


class leapyear_weekday_iterator :
  public fd::gregorian::leapyear_anyday_iterator< year_weekday_iterator >
{
public:

  // public member functions
  leapyear_weekday_iterator(date_type, nth_kday_of_month::week_num, 
                            boost::date_time::weekdays);
};

Description

leapyear_weekday_iterator public member functions

  1. leapyear_weekday_iterator(date_type d, 
                              nth_kday_of_month::week_num originWeekNo, 
                              boost::date_time::weekdays originWeekday);

    Parameters:

    d

    Current date (year, month) where to set up the iterator.

    originWeekNo

    The week number of a month [1..5] to set up the iterator.

    originWeekday

    The day of week [0..6] to set up the iterator.


PrevUpHomeNext