28 template<
class container_t>
33 template<
class container_t_,
class derived_t_>
36 template<
class container_t_,
class derived_t_>
39 using difference_type =
typename container_t::difference_type;
40 using size_type =
typename container_t::size_type;
41 using value_type =
typename container_t::value_type;
42 using pointer =
typename container_t::pointer;
43 using const_pointer =
typename container_t::const_pointer;
44 using reference =
typename container_t::reference;
45 using const_reference =
typename container_t::const_reference;
47 using iterator_category = std::contiguous_iterator_tag;
48 using iterator_concept = std::contiguous_iterator_tag;
52 constexpr
base_iterator(container_t* pContainer, size_type nIndex) noexcept
54 , m_pContainer(pContainer)
57 constexpr
operator void*() noexcept;
60 constexpr
void shift(difference_type nShift) noexcept;
61 constexpr decltype(
auto) get(difference_type nShift = 0)
const noexcept;
62 constexpr size_type get_index()
const noexcept;
63 constexpr
auto get_address()
const noexcept;
66 size_type m_nIndex = 0u;
67 container_t* m_pContainer =
nullptr;
80 template<
class container_t,
class derived_t>
84 using decayed_derived_type = std::decay_t<derived_t>;
87 using super_type::super_type;
89 template<
class iterator_t>
90 requires derived_from_template_c<iterator_t, base_iterator>
91 constexpr
typename super_type::difference_type operator-(
const iterator_t& r)
const noexcept;
98 constexpr decayed_derived_type& operator++() noexcept;
99 constexpr decayed_derived_type& operator--() noexcept;
100 [[nodiscard]] constexpr decayed_derived_type operator++(
int) noexcept;
101 [[nodiscard]] constexpr decayed_derived_type operator--(
int) noexcept;
102 constexpr decayed_derived_type& operator+=(
typename super_type::difference_type n) noexcept;
103 constexpr decayed_derived_type& operator-=(
typename super_type::difference_type n) noexcept;
104 constexpr decayed_derived_type operator+(
typename super_type::difference_type n)
const noexcept;
105 constexpr decayed_derived_type operator-(
typename super_type::difference_type n)
const noexcept;
108 template<
class iterator_t>
109 requires derived_from_template_c<iterator_t, base_forward_iterator>
110 constexpr iterator_t operator+(
typename iterator_t::size_type n, iterator_t it) noexcept;
122 template<
class container_t,
class derived_t>
126 using decayed_derived_type = std::decay_t<derived_t>;
129 using super_type::super_type;
131 template<
class iterator_t>
132 requires derived_from_template_c<iterator_t, base_iterator>
133 constexpr
typename super_type::difference_type operator-(
const iterator_t& r)
const noexcept;
142 constexpr decayed_derived_type& operator++() noexcept;
143 constexpr decayed_derived_type& operator--() noexcept;
144 [[nodiscard]] constexpr decayed_derived_type operator++(
int) noexcept;
145 [[nodiscard]] constexpr decayed_derived_type operator--(
int) noexcept;
146 constexpr decayed_derived_type& operator+=(
typename super_type::difference_type n) noexcept;
147 constexpr decayed_derived_type& operator-=(
typename super_type::difference_type n) noexcept;
148 constexpr decayed_derived_type operator+(
typename super_type::difference_type n)
const noexcept;
149 constexpr decayed_derived_type operator-(
typename super_type::difference_type n)
const noexcept;
152 template<
class iterator_t>
153 requires derived_from_template_c<iterator_t, base_reverse_iterator>
154 constexpr iterator_t operator+(
typename iterator_t::size_type n, iterator_t it) noexcept;
Basic contiguous forward iterator, meaning that incrementing an iterator will lead it moving forward.
Base contiguous iterator with a container pointer and an index.
Basic contiguous reverse iterator, meaning that incrementing an iterator will lead it moving backward...
requires(same_variadic_args_v< args_t... >) const expr auto coalesce(args_t &&... args)
Coalesce function, C# a ?? b analogue.