template <class T> struct is_bind_expression; |
成员类型 | 定义 |
value_type | bool |
type | true_type或false类型 |
成员类型 | 定义 |
value_type | bool |
type | true_type或false类型(或具有相同特征的类型) |
成员常量 | 定义 |
value | true或false |
成员函数 | 定义 |
operator bool | 返回true或false |
// 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; } |
bind | 绑定函数参数(类模板) |
is_placeholder | 是否占位符(类模板) |