22 #include <type_traits> 30 int Ifun(
int i) {
return i; }
32 int operator() (
int i) {
38 Ibar(
int num) : num_(num) {}
39 int echo(
int i)
const {
return i; }
40 int get()
const {
return num_; }
invoke() and invoke traits implementation
STL's core language concepts.
meta::eval< invoke_result< _Callable, _Args... > > invoke_result_t
invoke_result_t (for C++14)
std::is_invocable_r trait for C++11
#define EXPECT_EQ(val1, val2)
std::is_invocable trait for C++11