Searched defs:PolymorphicFunctor (Results 1 – 4 of 4) sorted by relevance
1042 struct PolymorphicFunctor { struct1043 typedef int result_type;1044 int operator()(int n) { return n; } in operator ()()1045 int operator()(const char* s) { return static_cast<int>(strlen(s)); } in operator ()()1046 std::string operator()(int* p) { return p ? "good ptr" : "null"; } in operator ()()
1477 TEST(FunctorActionTest, PolymorphicFunctor) { in TEST() argument
1497 TEST(FunctorActionTest, PolymorphicFunctor) { in TEST() argument
4696 struct PolymorphicFunctor { in TEST() struct4697 typedef int result_type; in TEST()4698 int operator()(int n) { return n; } in TEST()4699 int operator()(const char* s) { return static_cast<int>(strlen(s)); } in TEST()4700 std::string operator()(int *p) { return p ? "good ptr" : "null"; } in TEST()