current_ = current_ - offset_;
return *this;
}
- time_type operator*() {return current_;}
- time_type* operator->() {return ¤t_;}
- bool operator< (const time_type& t) {return current_ < t;}
- bool operator<= (const time_type& t) {return current_ <= t;}
- bool operator!= (const time_type& t) {return current_ != t;}
- bool operator== (const time_type& t) {return current_ == t;}
- bool operator> (const time_type& t) {return current_ > t;}
- bool operator>= (const time_type& t) {return current_ >= t;}
+ const time_type& operator*() const {return current_;}
+ const time_type* operator->() const {return ¤t_;}
+ bool operator< (const time_type& t) const {return current_ < t;}
+ bool operator<= (const time_type& t) const {return current_ <= t;}
+ bool operator!= (const time_type& t) const {return current_ != t;}
+ bool operator== (const time_type& t) const {return current_ == t;}
+ bool operator> (const time_type& t) const {return current_ > t;}
+ bool operator>= (const time_type& t) const {return current_ >= t;}
private:
time_type current_;