Namespaces
Variants
Views
Actions

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|{{cpp/std max|c++17|{{{deprecated|}}}}}}}}}| 1=
+
{{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

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
<tr class="t-dcl t-since-Expression error: Missing operand for >. ">

</tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

</table>


Defined in header <type_traits>
template< class T >
struct ;

Contents

Template parameters

T - a type to check

Helper variable template

<tr class="t-dcl t-since-Expression error: Missing operand for >. ">

</tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

</table>

Inherited from std::integral_constant

Member constants

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>