struct A:Moveable<A>{ int a; A(int x){a=x;} }; class Predicate { public: bool operator()(const A& lhs, const A& rhs){ return lhs.a==rhs.a; } }; int main(){ A vector_b(1); Vector<A> vector_a; vector_a.Add(1); vector_a.Add(2); FindBinary(vector_a,vector_b,Predicate()); return 0; }
Report message to a moderator