Lines Matching refs:HashSetIterator
38 class HashSetIterator {
46 HashSetIterator(const HashSetIterator&) = default;
47 HashSetIterator(HashSetIterator&&) = default;
48 HashSetIterator(HashSetType* hash_set, size_t index) : index_(index), hash_set_(hash_set) {} in HashSetIterator() function
56 HashSetIterator(const HashSetIterator<OtherElem, OtherHashSetType>& other) in HashSetIterator() function
59 HashSetIterator& operator=(const HashSetIterator&) = default;
60 HashSetIterator& operator=(HashSetIterator&&) = default;
62 bool operator==(const HashSetIterator& other) const {
66 bool operator!=(const HashSetIterator& other) const {
70 HashSetIterator operator++() { // Value after modification.
75 HashSetIterator operator++(int) {
76 HashSetIterator temp = *this;
95 friend bool operator==(const HashSetIterator<Elem1, HashSetType1>& lhs,
96 const HashSetIterator<Elem2, HashSetType2>& rhs);
98 template <class OtherElem, class OtherHashSetType> friend class HashSetIterator; variable
102 bool operator==(const HashSetIterator<Elem1, HashSetType1>& lhs,
103 const HashSetIterator<Elem2, HashSetType2>& rhs) {
105 std::is_convertible<HashSetIterator<Elem1, HashSetType1>,
106 HashSetIterator<Elem2, HashSetType2>>::value ||
107 std::is_convertible<HashSetIterator<Elem2, HashSetType2>,
108 HashSetIterator<Elem1, HashSetType1>>::value, "Bad iterator types.");
114 bool operator!=(const HashSetIterator<Elem1, HashSetType1>& lhs,
115 const HashSetIterator<Elem2, HashSetType2>& rhs) {
179 using iterator = HashSetIterator<T, HashSet>;
180 using const_iterator = HashSetIterator<const T, const HashSet>;
768 friend class HashSetIterator; variable