friend class interval_set;
};
- class const_iterator : public std::iterator <std::forward_iterator_tag, T>
+ class const_iterator
{
public:
+ using difference_type = ssize_t;
+ using value_type = const typename Map::value_type;
+ using pointer = const typename Map::value_type*;
+ using reference = const typename Map::value_type&;
+ using iterator_category = std::forward_iterator_tag;
+
explicit const_iterator(typename Map::const_iterator iter)
: _iter(iter)
{ }
}
// Dereference this iterator to get a pair.
- const_reference operator*() const {
+ reference operator*() const {
return *_iter;
}