struct ecs::TMultiIteratorAdapter

template<typename BaseIteratorType, typename ...OtherIteratorType>

Performs iteration at multiple underlying iterators at once.

Only supports forward iteration, one entry at a time.

Public

Constructors

TMultiIteratorAdapter<BaseIteratorType, OtherIteratorType...>

TMultiIteratorAdapter<BaseIteratorType, OtherIteratorType...>() = default

TMultiIteratorAdapter<BaseIteratorType, OtherIteratorType...>

constexpr TMultiIteratorAdapter<BaseIteratorType, OtherIteratorType...>(BaseIteratorType firstIterator, OtherIteratorType ...otherIterator)

Methods

GetBaseIterator

constexpr iterator_type GetBaseIterator() const

Operators

operator++

constexpr TMultiIteratorAdapter<BaseIteratorType, OtherIteratorType...> &operator++()

operator->

constexpr pointer operator->() const noexcept

operator*

constexpr reference operator*() const noexcept

Private

Fields

mIterators

std::tuple<BaseIteratorType, OtherIteratorType...> mIterators