Searched defs:PolymorphicFunctor (Results 1 – 3 of 3) sorted by relevance
3460 struct PolymorphicFunctor { struct3461 typedef int result_type;3462 int operator()(int n) { return n; } in operator ()()3463 int operator()(const char* s) { return static_cast<int>(strlen(s)); } in operator ()()
4551 struct PolymorphicFunctor { struct4552 typedef int result_type;4553 int operator()(int n) { return n; } in operator ()()4554 int operator()(const char* s) { return static_cast<int>(strlen(s)); } in operator ()()4555 std::string operator()(int *p) { return p ? "good ptr" : "null"; } in operator ()()
1406 TEST(FunctorActionTest, PolymorphicFunctor) { in TEST() argument