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

Copy a subset of a sequence to a new sequence. More...

#include <algorithm>
#include <utility>
#include <boost/range/begin.hpp>
#include <boost/range/end.hpp>
Include dependency graph for partition_copy.hpp:

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::algorithm
 

Functions

template<typename InputIterator , typename OutputIterator1 , typename OutputIterator2 , typename UnaryPredicate >
std::pair< OutputIterator1,
OutputIterator2 > 
boost::algorithm::partition_copy (InputIterator first, InputIterator last, OutputIterator1 out_true, OutputIterator2 out_false, UnaryPredicate p)
 Copies the elements that satisfy the predicate p from the range [first, last) to the range beginning at d_first_true, and copies the elements that do not satisfy p to the range beginning at d_first_false. More...
 
template<typename Range , typename OutputIterator1 , typename OutputIterator2 , typename UnaryPredicate >
std::pair< OutputIterator1,
OutputIterator2 > 
boost::algorithm::partition_copy (const Range &r, OutputIterator1 out_true, OutputIterator2 out_false, UnaryPredicate p)
 

Detailed Description

Copy a subset of a sequence to a new sequence.

Author
Marshall Clow