Namespaces
Variants
Views
Actions

std::is_placeholder

From cppreference.com
< cpp‎ | utility‎ | functional
Revision as of 19:43, 7 December 2011 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/utility/functional/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <functional>
</td>

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

<td >
template< class T >
struct is_placeholder;
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

If T is the type of a standard placeholder (_1, _2, _3, ...), then this template is derived from Template:cpp, Template:cpp, Template:cpp, respectively. If T is not a standard placeholder type, this template is derived from Template:cpp.

The template may be specialized for any user-defined type which should be treated by Template:cpp as if it was a placeholder for unbound arguments.

Contents

Inherited from std::integral_constant

Member constants

value
[static]
placeholder value or 0 for non-placeholder types
(public static member constant)

Member functions

operator int
converts the object to int, returns value
(public member function)
operator()
(C++14)
returns value
(public member function)

Member types

Type Definition
value_type int
type std::integral_constant<int, value>

Example

Template:example cpp

See also

(C++11)
binds one or more arguments to a function object
(function template) [edit]
placeholders for the unbound arguments in a std::bind expression
(constant) [edit]