dune-common 2.12-git
Loading...
Searching...
No Matches
Dune::Indices Namespace Reference

Namespace with predefined compile time indices for the range [0,19]. More...

Namespaces

namespace  Literals
 

Functions

template<char... digits>
constexpr auto operator""_ic ()
 Literal to create an index compile-time constant.
 
template<char... digits>
constexpr auto operator""_uc ()
 Literal to create an unsigned integer compile-time constant.
 
template<char... digits>
constexpr auto operator""_sc ()
 Literal to create a signed integer compile-time constant.
 
template<class T , T value>
constexpr auto operator- (std::integral_constant< T, value >)
 Negation operator for integral constants.
 

Variables

constexpr index_constant< 0 > _0 = {}
 Compile time index with value 0.
 
constexpr index_constant< 1 > _1 = {}
 Compile time index with value 1.
 
constexpr index_constant< 2 > _2 = {}
 Compile time index with value 2.
 
constexpr index_constant< 3 > _3 = {}
 Compile time index with value 3.
 
constexpr index_constant< 4 > _4 = {}
 Compile time index with value 4.
 
constexpr index_constant< 5 > _5 = {}
 Compile time index with value 5.
 
constexpr index_constant< 6 > _6 = {}
 Compile time index with value 6.
 
constexpr index_constant< 7 > _7 = {}
 Compile time index with value 7.
 
constexpr index_constant< 8 > _8 = {}
 Compile time index with value 8.
 
constexpr index_constant< 9 > _9 = {}
 Compile time index with value 9.
 
constexpr index_constant< 10 > _10 = {}
 Compile time index with value 10.
 
constexpr index_constant< 11 > _11 = {}
 Compile time index with value 11.
 
constexpr index_constant< 12 > _12 = {}
 Compile time index with value 12.
 
constexpr index_constant< 13 > _13 = {}
 Compile time index with value 13.
 
constexpr index_constant< 14 > _14 = {}
 Compile time index with value 14.
 
constexpr index_constant< 15 > _15 = {}
 Compile time index with value 15.
 
constexpr index_constant< 16 > _16 = {}
 Compile time index with value 16.
 
constexpr index_constant< 17 > _17 = {}
 Compile time index with value 17.
 
constexpr index_constant< 18 > _18 = {}
 Compile time index with value 18.
 
constexpr index_constant< 19 > _19 = {}
 Compile time index with value 19.
 

Detailed Description

Namespace with predefined compile time indices for the range [0,19].

The predefined index objects in this namespace are constexpr, which allows them to be used in situations where a compile time constant is needed, e.g. for a template parameter. Apart from that, constexpr implies internal linkage, which helps to avoid ODR problems.

The constants implicitly convert to their contained value, so you can for example write

// the above line is equivalent to

Variable Documentation

◆ _0

constexpr index_constant< 0> Dune::Indices::_0 = {}
inlineconstexpr

Compile time index with value 0.

◆ _1

constexpr index_constant< 1> Dune::Indices::_1 = {}
inlineconstexpr

Compile time index with value 1.

◆ _10

constexpr index_constant<10> Dune::Indices::_10 = {}
inlineconstexpr

Compile time index with value 10.

◆ _11

constexpr index_constant<11> Dune::Indices::_11 = {}
inlineconstexpr

Compile time index with value 11.

◆ _12

constexpr index_constant<12> Dune::Indices::_12 = {}
inlineconstexpr

Compile time index with value 12.

◆ _13

constexpr index_constant<13> Dune::Indices::_13 = {}
inlineconstexpr

Compile time index with value 13.

◆ _14

constexpr index_constant<14> Dune::Indices::_14 = {}
inlineconstexpr

Compile time index with value 14.

◆ _15

constexpr index_constant<15> Dune::Indices::_15 = {}
inlineconstexpr

Compile time index with value 15.

◆ _16

constexpr index_constant<16> Dune::Indices::_16 = {}
inlineconstexpr

Compile time index with value 16.

◆ _17

constexpr index_constant<17> Dune::Indices::_17 = {}
inlineconstexpr

Compile time index with value 17.

◆ _18

constexpr index_constant<18> Dune::Indices::_18 = {}
inlineconstexpr

Compile time index with value 18.

◆ _19

constexpr index_constant<19> Dune::Indices::_19 = {}
inlineconstexpr

Compile time index with value 19.

◆ _2

constexpr index_constant< 2> Dune::Indices::_2 = {}
inlineconstexpr

Compile time index with value 2.

◆ _3

constexpr index_constant< 3> Dune::Indices::_3 = {}
inlineconstexpr

Compile time index with value 3.

◆ _4

constexpr index_constant< 4> Dune::Indices::_4 = {}
inlineconstexpr

Compile time index with value 4.

◆ _5

constexpr index_constant< 5> Dune::Indices::_5 = {}
inlineconstexpr

Compile time index with value 5.

◆ _6

constexpr index_constant< 6> Dune::Indices::_6 = {}
inlineconstexpr

Compile time index with value 6.

◆ _7

constexpr index_constant< 7> Dune::Indices::_7 = {}
inlineconstexpr

Compile time index with value 7.

◆ _8

constexpr index_constant< 8> Dune::Indices::_8 = {}
inlineconstexpr

Compile time index with value 8.

◆ _9

constexpr index_constant< 9> Dune::Indices::_9 = {}
inlineconstexpr

Compile time index with value 9.