Home
last modified time | relevance | path

Searched refs:one_of_equal (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/algorithm/test/
Done_of_test.cpp42 BOOST_CHECK (!ba::one_of_equal ( vi, 1 )); in test_one()
44 BOOST_CHECK (!ba::one_of_equal ( vi.begin(), vi.end(), 1 )); in test_one()
47 BOOST_CHECK (!ba::one_of_equal ( vi, 0 )); in test_one()
49 BOOST_CHECK (!ba::one_of_equal ( vi.begin(), vi.end(), 0 )); in test_one()
52 BOOST_CHECK ( ba::one_of_equal ( vi, 2 )); in test_one()
54 BOOST_CHECK ( ba::one_of_equal ( vi.begin(), vi.end(), 2 )); in test_one()
58 BOOST_CHECK ( ba::one_of_equal ( vi, 5 )); in test_one()
60 BOOST_CHECK ( ba::one_of_equal ( vi.begin(), vi.end(), 5 )); in test_one()
63 BOOST_CHECK ( ba::one_of_equal ( vi.begin() + 1, vi.end(), 1 )); in test_one()
66 BOOST_CHECK ( ba::one_of_equal ( vc.begin() + 1, vc.begin() + 2, 'q' )); in test_one()
[all …]
/third_party/boost/libs/algorithm/doc/
Done_of.qbk16 The routine `one_of_equal` takes a sequence and a value. It will return true if one element in the …
34 The function `one_of_equal` is similar to `one_of`, but instead of taking a predicate to test the e…
39 bool one_of_equal ( InputIterator first, InputIterator last, V const &val );
41 bool one_of_equal ( const Range &r, V const &val );
57 one_of_equal ( c, 3 ) --> true
58 one_of_equal ( c.begin (), c.begin () + 3, 3 ) --> false
59 one_of_equal ( c.begin (), c.begin (), 99 ) --> false // empty range
64 `one_of` and `one_of_equal` work on all iterators except output iterators.
68 All of the variants of `one_of` and `one_of_equal` run in ['O(N)] (linear) time; that is, they comp…
72 All of the variants of `one_of` and `one_of_equal` take their parameters by value or const referenc…
[all …]
Dalgorithm.qbk123 [section:one_of_equal one_of_equal ]
124 [*[^[link header.boost.algorithm.cxx11.one_of_hpp one_of_equal] ]…
126 [endsect:one_of_equal]
/third_party/boost/boost/algorithm/cxx11/
Done_of.hpp65 BOOST_CXX14_CONSTEXPR bool one_of_equal ( InputIterator first, InputIterator last, const V &val ) in one_of_equal() function
84 BOOST_CXX14_CONSTEXPR bool one_of_equal ( const Range &r, const V &val ) in one_of_equal() function
86 return boost::algorithm::one_of_equal ( boost::begin (r), boost::end (r), val ); in one_of_equal()