MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / iterator_valid

Method iterator_valid

common/unordered_inline_set.h:160–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 iterator begin() const noexcept { return ((SparseArray*)this)->_begin(); }
159 iterator end() const noexcept { return {(SparseArray*)this, _capacity}; }
160 bool iterator_valid(iterator it) const noexcept {
161 return it._a == this && it._i <= capacity();
162 }
163
164 const T& operator[](size_t i) const {
165 return *get(i);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected