| Home | Libraries | People | FAQ | More

## Class template week_functor

boost::date_time::week_functor — Functor to iterate a over weeks.

## Synopsis

    // In header: <boost/date_time/adjust_functors.hpp>

    template<typename date_type>
    class week_functor {
    public:
      // types
      typedef date_type::duration_type duration_type;
      typedef date_type::calendar_type calendar_type;

      // public member functions
      week_functor(int);
      duration_type get_offset(const date_type &) const;
      duration_type get_neg_offset(const date_type &) const;
    };

## Description

### `week_functor` public member functions

1.     week_functor(int f);

2.     duration_type get_offset(const date_type &) const;

3.     duration_type get_neg_offset(const date_type &) const;