Dune Core Modules (unstable)
indexediterator.hh
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
152 friend constexpr difference_type operator- (const IndexedIterator& it1, const IndexedIterator& it2)
constexpr difference_type index() const noexcept
Return the enumeration index.
Definition: indexediterator.hh:164
constexpr IndexedIterator(T *ptr, difference_type index=0)
Construct an IndexedIterator from a pointer and an index.
Definition: indexediterator.hh:135
An iterator mixin that adds an index() method returning an enumeration index for the traversal.
Definition: indexediterator.hh:31
constexpr IndexedIterator & operator++()
Increment the iterator and the index.
Definition: indexediterator.hh:62
constexpr IndexedIterator & operator--()
Decrement the iterator and the index.
Definition: indexediterator.hh:80
constexpr size_type index() const noexcept
Return the enumeration index.
Definition: indexediterator.hh:56
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:43
constexpr IndexedIterator(Iter it, size_type index=0) noexcept(std::is_nothrow_copy_constructible_v< Iter >)
Definition: indexediterator.hh:49
typename Traits::difference_type size_type
Type used for storing the traversal index.
Definition: indexediterator.hh:38
CRTP-Mixing class for stl conformant iterators of given iterator category.
Definition: iteratorfacades.hh:1053
constexpr EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for equality.
Definition: iteratorfacades.hh:238
This file implements iterator facade classes for writing stl conformant iterators.
STL namespace.
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Jun 2, 23:00, 2026)