Difference between revisions of "Template:cpp/types/traits/is"
From cppreference.com
m |
(+) |
||
Line 10: | Line 10: | ||
{{{description|}}} | {{{description|}}} | ||
+ | |||
+ | {{#ifeq:{{cpp/std max|c++14|{{{std|}}}}}|c++14|{{cpp/types/nospec|v}}|{{cpp/types/nospec|pv}}}} | ||
===Template parameters=== | ===Template parameters=== |
Revision as of 15:00, 24 January 2020
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> |