File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,18 @@ namespace
44
44
// variable length structures.
45
45
46
46
template <typename W>
47
- class _glat_iterator : public std ::iterator<std::input_iterator_tag, std::pair<sparse::key_type, sparse::mapped_type> >
47
+ class _glat_iterator
48
48
{
49
49
unsigned short key () const { return be::peek<W>(_e) + _n; }
50
50
unsigned int run () const { return be::peek<W>(_e+sizeof (W)); }
51
51
void advance_entry () { _n = 0 ; _e = _v; be::skip<W>(_v,2 ); }
52
52
public:
53
+ using iterator_category = std::input_iterator_tag;
54
+ using value_type = std::pair<sparse::key_type, sparse::mapped_type>;
55
+ using difference_type = ptrdiff_t ;
56
+ using pointer = value_type *;
57
+ using reference = value_type &;
58
+
53
59
_glat_iterator (const void * glat=0 ) : _e(reinterpret_cast <const byte *>(glat)), _v(_e+2 *sizeof (W)), _n(0 ) {}
54
60
55
61
_glat_iterator<W> & operator ++ () {
You can’t perform that action at this time.
0 commit comments