DUNE PDELab (git)
Dune::IntegralRange< T > Class Template Reference
dynamic integer range for use in range-based for loops More...
#include <dune/common/rangeutilities.hh>
Public Member Functions | |
constexpr | IntegralRange (value_type from, value_type to) noexcept |
construct integer range [from, to) | |
constexpr | IntegralRange (value_type to) noexcept |
construct integer range [0, to) | |
constexpr | IntegralRange (std::pair< value_type, value_type > range) noexcept |
construct integer range std::pair | |
constexpr iterator | begin () const noexcept |
obtain a random-access iterator to the first element | |
constexpr iterator | end () const noexcept |
obtain a random-access iterator past the last element | |
constexpr value_type | operator[] (const value_type &i) const noexcept |
access specified element | |
constexpr bool | empty () const noexcept |
check whether the range is empty | |
constexpr size_type | size () const noexcept |
obtain number of elements in the range | |
constexpr bool | contains (value_type index) const noexcept |
check whether given index is within range [from, to) | |
Detailed Description
template<class T>
class Dune::IntegralRange< T >
class Dune::IntegralRange< T >
dynamic integer range for use in range-based for loops
- Note
- This range can also be used in Hybrid::forEach, resulting in a dynamic for loop over the contained integers.
- Template Parameters
-
T type of integers contained in the range
The documentation for this class was generated from the following file:
- dune/common/rangeutilities.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)