|
| void | next () |
| | Advance the iterator and increment the associated index (bounds-checked).
|
| |
| void | next_ne () noexcept(noexcept(std::declval< Base & >().next_ne())) |
| | Advance the iterator and increment the associated index (unchecked variant).
|
| |
| | EnumZipIterator (const C &c) |
| | Construct an enumerating iterator over a single container.
|
| |
| std::tuple< T, size_t > | get_curr () const |
| | Return the current tuple (value, index) (bounds-checked).
|
| |
| std::tuple< T, size_t > | get_curr_ne () const noexcept(zip_detail::nothrow_curr_copy< Base, T >) |
| | Return the current tuple (value, index) (unchecked variant).
|
| |
| bool | completed () const noexcept |
| | Return true if the underlying iterator has reached the end.
|
| |
| | Const_Iterator ()=default |
| | A view with no current item.
|
| |
template<class C >
requires (not std::same_as<std::remove_cvref_t<C>, Const_Iterator> and not std::same_as<std::remove_cvref_t<C>, It>) |
| | Const_Iterator (const C &c) |
| | View positioned on the first item of the container c.
|
| |
| | Const_Iterator (It underlying) noexcept(std::is_nothrow_move_constructible_v< It >) |
| | Read-only view over an existing iterator.
|
| |
| template<class I = It> |
| auto | has_curr () const noexcept(noexcept(std::declval< I & >().has_curr())) -> decltype(std::declval< I & >().has_curr()) |
| | true if there is a current item.
|
| |
| template<class I = It> |
| auto | get_curr () const noexcept(noexcept(std::declval< I & >().get_curr())) -> const_iterator_detail::const_item_t< decltype(std::declval< I & >().get_curr())> |
| | The current item, read-only.
|
| |
| template<class I = It> |
| auto | get_curr_ne () const noexcept(noexcept(std::declval< I & >().get_curr_ne())) -> const_iterator_detail::const_item_t< decltype(std::declval< I & >().get_curr_ne())> |
| | get_curr() without the checks of the underlying iterator.
|
| |
| template<class I = It> |
| auto | next () noexcept(noexcept(std::declval< I & >().next())) -> decltype(std::declval< I & >().next()) |
| | Move to the next item; what the underlying iterator throws.
|
| |
| template<class I = It> |
| auto | next_ne () noexcept(noexcept(std::declval< I & >().next_ne())) -> decltype(std::declval< I & >().next_ne()) |
| | next() without checks.
|
| |
| template<class I = It> |
| auto | prev () noexcept(noexcept(std::declval< I & >().prev())) -> decltype(std::declval< I & >().prev()) |
| | Move to the previous item; what the underlying iterator throws.
|
| |
| template<class I = It> |
| auto | prev_ne () noexcept(noexcept(std::declval< I & >().prev_ne())) -> decltype(std::declval< I & >().prev_ne()) |
| | prev() without checks.
|
| |
| template<class I = It> |
| auto | reset_first () noexcept(noexcept(std::declval< I & >().reset_first())) -> decltype(std::declval< I & >().reset_first()) |
| | Position the view on the first item.
|
| |
| template<class I = It> |
| auto | reset_last () noexcept(noexcept(std::declval< I & >().reset_last())) -> decltype(std::declval< I & >().reset_last()) |
| | Position the view on the last item.
|
| |
| template<class I = It> |
| auto | reset () noexcept(noexcept(std::declval< I & >().reset())) -> decltype(std::declval< I & >().reset()) |
| | Position the view on the first item.
|
| |
| template<class I = It> |
| auto | end () noexcept(noexcept(std::declval< I & >().end())) -> decltype(std::declval< I & >().end()) |
| | Position the view past the last item.
|
| |
| template<class I = It> |
| auto | get_pos () const noexcept(noexcept(std::declval< I & >().get_pos())) -> decltype(std::declval< I & >().get_pos()) |
| | Ordinal position of the current item.
|
| |
| template<class I = It> |
| auto | set_pos (const long pos) noexcept(noexcept(std::declval< I & >().set_pos(pos))) -> decltype(std::declval< I & >().set_pos(pos)) |
| | Position the view on the item at ordinal position pos.
|
| |
| template<class I = It> |
| auto | is_last () const noexcept(noexcept(std::declval< I & >().is_last())) -> decltype(std::declval< I & >().is_last()) |
| | true if the current item is the last one.
|
| |
| template<class I = It> |
| auto | is_in_first () const noexcept(noexcept(std::declval< I & >().is_in_first())) -> decltype(std::declval< I & >().is_in_first()) |
| | true if the current item is the first one.
|
| |
| template<class I = It> |
| auto | is_in_last () const noexcept(noexcept(std::declval< I & >().is_in_last())) -> decltype(std::declval< I & >().is_in_last()) |
| | true if the current item is the last one.
|
| |
| void | swap (Const_Iterator &other) noexcept(std::is_nothrow_swappable_v< It >) |
| | Exchange the views.
|
| |
| template<class I = It> |
| auto | operator== (const Const_Iterator &other) const -> decltype(std::declval< I & >()==std::declval< I & >()) |
| | Equality of the underlying iterators, when they have it.
|
| |
| template<class I = It> |
| auto | operator!= (const Const_Iterator &other) const -> decltype(not(std::declval< I & >()==std::declval< I & >())) |
| | Negation of ==.
|
| |
template<class C>
class Aleph::EnumZipIterator< C >
Base case of EnumZipIterator: the read-only iterator of the last container, which also counts the position.
- Template Parameters
-
Definition at line 1325 of file ah-zip.H.