Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
one_of.hpp File Reference

Test ranges to see if only one element matches a value or predicate. More...

#include <algorithm>
#include <boost/algorithm/cxx11/none_of.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
Include dependency graph for one_of.hpp:

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::algorithm
 

Functions

template<typename InputIterator , typename Predicate >
bool boost::algorithm::one_of (InputIterator first, InputIterator last, Predicate p)
 
template<typename Range , typename Predicate >
bool boost::algorithm::one_of (const Range &r, Predicate p)
 
template<typename InputIterator , typename V >
bool boost::algorithm::one_of_equal (InputIterator first, InputIterator last, const V &val)
 
template<typename Range , typename V >
bool boost::algorithm::one_of_equal (const Range &r, const V &val)
 

Detailed Description

Test ranges to see if only one element matches a value or predicate.

Author
Marshall Clow