|
dune-common 2.12-git
|
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
152 friend constexpr difference_type operator- (const IndexedIterator& it1, const IndexedIterator& it2)
This file implements iterator facade classes for writing stl conformant iterators.
bigunsignedint< k > operator*(const bigunsignedint< k > &x, std::uintmax_t y)
Definition bigunsignedint.hh:572
bigunsignedint< k > operator-(const bigunsignedint< k > &x, std::uintmax_t y)
Definition bigunsignedint.hh:565
STL namespace.
bool operator==(const AlignedAllocator< T, A > &, const AlignedAllocator< U, A > &) noexcept
Compare two aligned allocators of different types for equality.
Definition alignedallocator.hh:93
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
typename Facade::reference reference
Definition indexediterator.hh:130
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
typename Facade::difference_type difference_type
Definition indexediterator.hh:131
CRTP-Mixing class for stl conformant iterators of given iterator category.
Definition iteratorfacades.hh:1053
T & reference
Definition iteratorfacades.hh:1084
T alignment_of_v
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8