目录 algorithm/cxx11/all_of.hpp
namespace boost { namespace algorithm { template<typename InputIterator, typename Predicate> bool all_of ( InputIterator first, InputIterator last, Predicate p ); template<typename Range, typename Predicate> bool all_of ( const Range &r, Predicate p ); }}简述: 遍历给定容器中的所有元素,并进行条件判断。 返回值: true(所有的元素都满足给定条件) false(至少有一个元素不满足给定条件)
namespace boost { namespace algorithm { template<typename InputIterator, typename V> bool all_of_equal ( InputIterator first, InputIterator last, V const &val ); template<typename Range, typename V> bool all_of_equal ( const Range &r, V const &val ); }}简述: 遍历给定容器中的所有元素,判断是否与给定的值相等。 返回值: true(所有的元素都与给定的值相等) false(至少有一个元素与给定的值不相等)
目录 algorithm/cxx11/any_of.hpp
namespace boost { namespace algorithm { template<typename InputIterator, typename Predicate> bool any_of ( InputIterator first, InputIterator last, Predicate p ); template<typename Range, typename Predicate> bool any_of ( const Range &r, Predicate p ); }}简述: 遍历给定容器中的所有元素,并进行条件判断。 返回值: true(至少有一个元素满足给定条件) false(所有元素都不满足给定条件)
namespace boost { namespace algorithm { template<typename InputIterator, typename V> bool any_of_equal ( InputIterator first, InputIterator last, V const &val ); template<typename Range, typename V> bool any_of_equal ( const Range &r, V const &val ); }}简述: 遍历给定容器中的所有元素,判断是否与给定的值相等。 返回值: true(至少有一个元素与给定的值相等) false(所有的元素都与给定的值不相等)
目录 algorithm/cxx11/none_of.hpp
namespace boost { namespace algorithm { template<typename InputIterator, typename Predicate> bool none_of ( InputIterator first, InputIterator last, Predicate p ); template<typename Range, typename Predicate> bool none_of ( const Range &r, Predicate p ); }}简述: 遍历给定容器中的所有元素,并进行条件判断。 返回值: true(所有元素都不满足给定条件) false(至少有一个元素满足给定条件)
namespace boost { namespace algorithm { template<typename InputIterator, typename V> bool none_of_equal ( InputIterator first, InputIterator last, V const &val ); template<typename Range, typename V> bool none_of_equal ( const Range &r, V const &val ); }}简述: 遍历给定容器中的所有元素,判断是否与给定的值相等。 返回值: true(所有的元素都与给定的值不相等) false(至少有一个元素与给定的值相等)
目录 algorithm/cxx11/one_of.hpp
namespace boost { namespace algorithm { template<typename InputIterator, typename Predicate> bool one_of ( InputIterator first, InputIterator last, Predicate p ); template<typename Range, typename Predicate> bool one_of ( const Range &r, Predicate p ); }}简述: 遍历给定容器中的所有元素,并进行条件判断。 返回值: true(至少有一个元素满足给定条件) false(所有元素都不满足给定条件)
namespace boost { namespace algorithm { template<typename InputIterator, typename V> bool one_of_equal ( InputIterator first, InputIterator last, V const &val ); template<typename Range, typename V> bool one_of_equal ( const Range &r, V const &val ); }}简述: 遍历给定容器中的所有元素,判断是否与给定的值相等。 返回值: true(至少有一个元素与给定的值相等) false(所有的元素都与给定的值不相等)
注意 错误:对重载函数的调用不明确 修改:在all_of前加上域名,boost::algorithm::all_of。