Is there a way to use stl algorithms like find() and find_if() in a container of objects? Ex.:With find() find the element whit name "abc" in a vector of class Alfhabetic.
You can define a comparing predicate (functor). Here is a generic implementation:
In a vector of Alphabetic elements
you can run a search like:
You can define an
something like that:
and then finding an