C++ Library Extensions 2022.12.09
To help learn modern C++ programming
integral_constant< Type, v > Struct Template Reference

Public Types

using value_type = Type
 
using type = integral_constant
 

Public Member Functions

constexpr operator value_type () const noexcept
 
constexpr Type operator() () const noexcept
 

Static Public Attributes

static constexpr Type value = v
 

Detailed Description

template<typename Type, Type v>
struct integral_constant< Type, v >

Definition at line 41 of file 11-type_dispatch.cpp.

Member Typedef Documentation

◆ type

template<typename Type , Type v>
using integral_constant< Type, v >::type = integral_constant

Definition at line 46 of file 11-type_dispatch.cpp.

◆ value_type

template<typename Type , Type v>
using integral_constant< Type, v >::value_type = Type

Definition at line 44 of file 11-type_dispatch.cpp.

Member Function Documentation

◆ operator value_type()

template<typename Type , Type v>
constexpr integral_constant< Type, v >::operator value_type ( ) const
inlineconstexprnoexcept

Definition at line 49 of file 11-type_dispatch.cpp.

◆ operator()()

template<typename Type , Type v>
constexpr Type integral_constant< Type, v >::operator() ( ) const
inlineconstexprnoexcept

Definition at line 55 of file 11-type_dispatch.cpp.

Member Data Documentation

◆ value

template<typename Type , Type v>
constexpr Type integral_constant< Type, v >::value = v
staticconstexpr

Definition at line 43 of file 11-type_dispatch.cpp.


The documentation for this struct was generated from the following file: