Public Member Functions | |
| template<typename I , typename S , typename V , typename P = ident, requires = (InputIterator<I>() && Sentinel<S, I>() && IndirectCallableRelation<equal_to, projected<I, P>, V const *>())> | |
| I | operator() (I begin, S end, V const &val, P proj_=P{}) const |
template function find_fn::operator() More... | |
| template<typename Rng , typename V , typename P = ident, typename I = range_iterator_t<Rng>, requires = (InputRange<Rng>() && IndirectCallableRelation<equal_to, projected<I, P>, V const *>())> | |
| range_safe_iterator_t< Rng > | operator() (Rng &&rng, V const &val, P proj=P{}) const |
| I ranges::v3::find_fn::operator() | ( | I | begin, |
| S | end, | ||
| V const & | val, | ||
| P | proj_ = P{} |
||
| ) | const |
template function find_fn::operator()
range-based version of the find std algorithm
Rng is a model of the Range concept I is a model of the InputIterator concept S is a model of the Sentinel<I> concept P is a model of the Callable<iterator_common_reference_t<I>> concept P is EqualityComparable with V | range_safe_iterator_t<Rng> ranges::v3::find_fn::operator() | ( | Rng && | rng, |
| V const & | val, | ||
| P | proj = P{} |
||
| ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.