Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
Burger::integral_constant< T, _Value > Struct Template Reference

Wrap a static constant of specified type. More...

Inheritance diagram for Burger::integral_constant< T, _Value >:
Inheritance graph
[legend]

Public Types

typedef T value_type
 Encapsulated type.
 
typedef integral_constant< T, _Value > type
 Instantiated type of this template.
 

Public Member Functions

constexpr operator T () const noexcept
 Function to return the encapsulated value.
 
constexpr T operator() () const noexcept
 Function to return the encapsulated value.
 

Static Public Attributes

static constexpr const T value = _Value
 Encapsulated value.
 

Detailed Description

template<class T, T _Value>
struct Burger::integral_constant< T, _Value >

Wrap a static constant of specified type.


A template to wrap a static constant of a specified type so templates can resolve the value at compile time. It's the base class for type traits.

Template Parameters
TType of wrapped value
_Valuevalue to wrap.
See also
bool_constant

Member Typedef Documentation

◆ type

template<class T , T _Value>
typedef integral_constant<T, _Value> Burger::integral_constant< T, _Value >::type

Instantiated type of this template.

◆ value_type

template<class T , T _Value>
typedef T Burger::integral_constant< T, _Value >::value_type

Encapsulated type.

Member Function Documentation

◆ operator T()

template<class T , T _Value>
Burger::integral_constant< T, _Value >::operator T ( ) const
inlineconstexprnoexcept

Function to return the encapsulated value.


Returns
The encapsulated value.

◆ operator()()

template<class T , T _Value>
Burger::integral_constant< T, _Value >::operator() ( ) const
inlineconstexprnoexcept

Function to return the encapsulated value.


Returns
The encapsulated value.

Member Data Documentation

◆ value

template<class T , T _Value>
constexpr const T Burger::integral_constant< T, _Value >::value = _Value
staticconstexpr

Encapsulated value.