class template
std::integral_constant
- Header
<type_traits>- Draft
- [meta.help]
- Scope
std- cppreference
- std::integral_constant
Synopsis
template<class T, T v>
struct integral_constant;Member types
| Name | Declaration |
|---|---|
typetype alias · member type | = integral_constant |
value_typetype alias · member type | = T |
Member functions
| Name | Declaration |
|---|---|
operator()operator | value_type operator()() const |
operator value_typeconversion function | operator value_type() const |
Static data members
| Name | Declaration |
|---|---|
valuestatic data member | T |