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

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.
 

Function Documentation

◆ operator""_ic()

template<char... digits>
constexpr auto Dune::Indices::Literals::operator""_ic ( )
constexpr

Literal to create an index compile-time constant.

Example: 1_ic -> std::integral_constant<std::size_t,1>

◆ operator""_sc()

template<char... digits>
constexpr auto Dune::Indices::Literals::operator""_sc ( )
constexpr

Literal to create a signed integer compile-time constant.

Example: 1_sc -> std::integral_constant<int,1>

◆ operator""_uc()

template<char... digits>
constexpr auto Dune::Indices::Literals::operator""_uc ( )
constexpr

Literal to create an unsigned integer compile-time constant.

Example: 1_uc -> std::integral_constant<unsigned,1>

◆ operator-()

template<class T , T value>
constexpr auto Dune::Indices::Literals::operator- ( std::integral_constant< T, value >  )
constexpr

Negation operator for integral constants.

Example: -1_sc -> std::integral_constant<int,-1>