Difference between revisions of "Template:cpp/types/traits/is"
From cppreference.com
m (+ support for deprecated) |
m (adjust) |
||
Line 17: | Line 17: | ||
=== Helper variable template === | === Helper variable template === | ||
− | {{ddcl | since={{cpp/std max|c++17|{{{std|}}}}} | deprecated ={{#if:{{{deprecated|}}}|{{#ifeq:{{{deprecated|}}}|c++17|yes | + | {{ddcl | since={{cpp/std max|c++17|{{{std|}}}}} | deprecated ={{#if:{{{deprecated|}}}|{{#ifeq:{{cpp/std max|c++17|{{{deprecated|}}}}}|c++17|yes|{{{deprecated|}}}}}}}| 1= |
template< class T > | template< class T > | ||
inline constexpr bool {{{1|}}}_v = {{{1|}}}<T>::value; | inline constexpr bool {{{1|}}}_v = {{{1|}}}<T>::value; |
Revision as of 11:00, 9 January 2018
Defined in header <type_traits>
|
template< class T > struct ; |
Contents |
Template parameters
T | - | a type to check |
Helper variable template
template< class T > inline constexpr bool _v = <T>::value; |
value [static] |
true if , false otherwise (public static member constant) |
Member functions
operator bool |
converts the object to bool, returns value (public member function) |
operator() (C++14) |
returns value (public member function) |
Member types
Type | Definition |
value_type
|
bool |
type
|
std::integral_constant<bool, value> |