fd::leapyear_filter_functor — Functor to iterate by leap years.
// In header: <fd/ptime_iteration.h> template<typename date_type> class leapyear_filter_functor { public: // types typedef typename date_type::duration_type duration_type; typedef typename date_type::year_type year_type; // construct/copy/destruct leapyear_filter_functor(int); // public member functions duration_type get_offset(date_type) const; duration_type get_neg_offset(date_type) const; // public static functions static constexpr bool is_leapyear(year_type); static constexpr bool is_leapyear(const date_type &); };