Public Member Functions | |
template<typename I , typename S , typename V , typename P = ident, requires = (InputIterator<I>() && Sentinel<S, I>() && IndirectRelation<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 = iterator_t<Rng>, requires = (InputRange<Rng>() && IndirectRelation<equal_to, projected<I, P>, V const *>())> | |
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 Invocable<iter_common_reference_t<I>>
concept P
is EqualityComparable with V References ranges::v3::begin, and ranges::v3::end.
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.
References ranges::v3::begin, ranges::v3::end, and ranges::v3::move.