Template Class SlotIterator

Class Documentation

template<class O, class P>
class SlotIterator

a bidirectional iterator on the occupied places of the table O, by the policy P with the static functions size( o ), occupied( o , i ) and read( o , i ); the items are constant

Public Types

using reference = decltype(P::read(std::declval<const O&>(), 0))
using value_type = std::remove_cvref_t<reference>
using difference_type = std::ptrdiff_t
using iterator_concept = std::bidirectional_iterator_tag
using iterator_category = std::conditional_t<std::is_reference_v<reference>, std::bidirectional_iterator_tag, std::input_iterator_tag>

Public Functions

SlotIterator(void) = default
inline SlotIterator(const O *o, std::size_t i)

on the first occupied place from i, or at the end

inline reference operator*(void) const
inline SlotIterator &operator++(void)
inline SlotIterator &operator--(void)
inline SlotIterator operator++(int)
inline SlotIterator operator--(int)
inline bool operator==(const SlotIterator &o) const
inline std::size_t place(void) const

the place