Lines Matching defs:iterator
23 struct iterator struct
29 using iterator_category = std::bidirectional_iterator_tag; argument
31 iterator() : ptr() { } in iterator() function
32 explicit iterator(pointer p) : ptr(p) { } in iterator() argument
34 iterator& operator++() { if (bang) throw 1; ++ptr; return *this; } in operator ++() argument
35 iterator operator++(int) { auto copy = *this; ++*this; return copy; } in operator ++() argument
36 iterator& operator--() { if (bang) throw 1; --ptr; return *this; } in operator --() argument
37 iterator operator--(int) { auto copy = *this; --*this; return copy; } in operator --() argument
42 bool operator==(iterator rhs) const noexcept { return ptr == rhs.ptr; } in operator ==() argument
43 bool operator!=(iterator rhs) const noexcept { return ptr != rhs.ptr; } in operator !=() argument
51 bool iterator::bang = false; argument