Template Class StableVectorIterator

Class Documentation

template<typename HandleT, typename ElemT>
class StableVectorIterator

Iterator over handles in this vector, which skips deleted elements.

Important: This is NOT a fail fast iterator. If the vector is changed while using an instance of this iterator the behavior is undefined!

Public Functions

StableVectorIterator(const vector<boost::optional<ElemT>> *deleted, bool startAtEnd = false)
constexpr StableVectorIterator(const StableVectorIterator<HandleT, ElemT>&) = default
StableVectorIterator &operator=(const StableVectorIterator &other)
bool operator==(const StableVectorIterator &other) const
bool operator!=(const StableVectorIterator &other) const
StableVectorIterator &operator++()
bool isAtEnd() const
HandleT operator*() const