fd::gregorian::year_monthday_iterator — 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.
// In header: <fd/date_iterators.h> class year_monthday_iterator : public fd::gregorian::month_day_iterator { public: // public member functions year_monthday_iterator(date_type, int, short); };
It's called 'year_monthday_iterator' to disambiguate it from boost date/time's year iterator. The latter has the problem that it is dependent on the date it is constructed from: If the date is the last day of the date's month then it automatically snaps to the last day, otherwise not. This is usually wrong for month-based iteration as the programmer needs to have control over the origin day of month.
year_monthday_iterator
public member functionsyear_monthday_iterator(date_type d, int f, short originDayOfMonthSpec);
Parameters: |
|