PrevUpHomeNext

Class leapyear_monthday_iterator

fd::gregorian::leapyear_monthday_iterator — Leap year level iterator, which stays at the day 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_monthday_iterator :
  public fd::gregorian::leapyear_anyday_iterator< year_monthday_iterator >
{
public:

  // public member functions
  leapyear_monthday_iterator(date_type, short);
};

Description

leapyear_monthday_iterator public member functions

  1. leapyear_monthday_iterator(date_type d, short originDayOfMonthSpec);

    Parameters:

    d

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

    originDayOfMonthSpec

    The day of month [1..31] to set up the iterator. Special values:

    • 0: Take origin day of month from specified date.

    • [-n..-1, 31..m]: Snap to last day of each month.


PrevUpHomeNext