2 Copyright 2010 Neil Groves
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 template<class SinglePassRange, class Value>
12 typename range_iterator<SinglePassRange>::type
13 find(SinglePassRange& rng, Value val);
16 range_return_value re,
17 class SinglePassRange,
20 typename range_return<SinglePassRange, re>::type
21 find(SinglePassRange& rng, Value val);
26 The versions of `find` that return an iterator, returns the first iterator in the range `rng` such that `*i == value`. `end(rng)` is returned if no such iterator exists.
27 The versions of find that return a `range_return`, defines `found` in the same manner as the returned iterator described above.
31 Defined in the header file `boost/range/algorithm/find.hpp`
33 [heading Requirements]
35 * `SinglePassRange` is a model of the __single_pass_range__ Concept.
36 * `Value` is a model of the `EqualityComparableConcept`.
37 * The `operator==` is defined for type `Value` to be compared with the `SinglePassRange`'s value type.
41 Linear. At most `distance(rng)` comparisons for equality.