find()
The elements within the container are compared for equality with value. If a match is found, the search ends. find() returns an iterator to the element. If no match is found, container.end() is returned.
#include <algorithm>
piter = find( ia, ia+8, value );
iter = find( svec.begin(), svec.end(), "rosebud" );
|