Dune Core Modules (unstable)
indexediterator.hh
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
An iterator mixin that adds an index() method returning an enumeration index for the traversal.
Definition: indexediterator.hh:29
constexpr IndexedIterator & operator++()
Increment the iterator and the index.
Definition: indexediterator.hh:60
constexpr IndexedIterator & operator--()
Decrement the iterator and the index.
Definition: indexediterator.hh:78
constexpr size_type index() const noexcept
Return the enumeration index.
Definition: indexediterator.hh:54
constexpr IndexedIterator() noexcept(std::is_nothrow_default_constructible_v< Iter >)
Default constructor default-constructs the Iter base type and the index by 0.
Definition: indexediterator.hh:41
constexpr IndexedIterator(Iter it, size_type index=0) noexcept(std::is_nothrow_copy_constructible_v< Iter >)
Definition: indexediterator.hh:47
typename Traits::difference_type size_type
Type used for storing the traversal index.
Definition: indexediterator.hh:36
STL namespace.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)