#include <vector> 
struct Foo; 
 std::vector<Foo> getFilteredFoos(bool (*filter)(const Foo &) = [](const Foo &){return true;});