Searched defs:PolymorphicFunctor (Results 1 – 2 of 2) sorted by relevance
4605 struct PolymorphicFunctor { struct4606 typedef int result_type;4607 int operator()(int n) { return n; } in operator ()()4608 int operator()(const char* s) { return static_cast<int>(strlen(s)); } in operator ()()4609 std::string operator()(int *p) { return p ? "good ptr" : "null"; } in operator ()()
1312 TEST(FunctorActionTest, PolymorphicFunctor) { in TEST() argument