class template
<functional>
std::is_bind_expressiontemplate <class T> struct is_bind_expression;
Is bind expression
Trait class that identifies whether T is a bind expression.It is defined with the same characteristics as either
true_typeor
false_type, depending on whether
Tis a type returned from
bindor not.
bool
type either true_type or false_type (or a type with the same characteristics)
true
or false
true
or false
1
2
3
4
5
6
7
8
9
10
11
12
13
// is_bind_expression example
#include <iostream> // std::cout, std::boolalpha
#include <functional> // std::bind, std::plus, std::placeholders, std::is_bind_expression
int main () {
using namespace std::placeholders; // introduces _1
auto increase_int = std::bind (std::plus<int>(),_1,1);
std::cout << std::boolalpha;
std::cout << std::is_bind_expression<decltype(increase_int)>::value << '\n';
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4