|
dune-common 2.11
|
Loading...
Searching...
No Matches
indexediterator.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
STL namespace.
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
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8