std::is_bind_expression (3) - Linux Manuals
std::is_bind_expression: std::is_bind_expression
NAME
std::is_bind_expression - std::is_bind_expression
Synopsis
Defined in header <functional>
template< class T > (since C++11)
struct is_bind_expression;
If T is the type produced by a call to std::bind, this template is derived from std::true_type. For any other type, this template is derived from std::false_type.
This template may be specialized for a user-defined type T to implement UnaryTypeTrait with BaseCharacteristic of std::true_type to indicate that T should be treated by std::bind as if it were the type of a bind subexpression: when a bind-generated function object is invoked, a bound argument of this type will be invoked as a function object and will be given all the unbound arguments passed to the bind-generated object.
Helper variable template
template< class T > (since C++17)
inline constexpr bool is_bind_expression_v = is_bind_expression<T>::value;
Inherited from std::integral_constant
Member constants
value true if T is a function object generated by std::bind, false otherwise
[static]
Member functions
operator bool (public member function)
operator() returns value
(C++14)
Member types
Type Definition
value_type bool
type std::integral_constant<bool, value>
Example
// Run this code
Output:
See also
bind binds one or more arguments to a function object
(C++11)