Function template partition_copy
boost::algorithm::partition_copy — 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.
Synopsis
template<typename InputIterator, typename OutputIterator1,
typename OutputIterator2, typename UnaryPredicate>
std::pair< OutputIterator1, OutputIterator2 >
partition_copy(InputIterator first, InputIterator last,
OutputIterator1 out_true, OutputIterator2 out_false,
UnaryPredicate p);Description
![[Note]](/img/note.png) | Note |
|---|
Эта функция является частью стандартной библиотеки C++2011. |
Параметры: | <first> | Начало входной последовательности | <last> | Один за концом входной последовательности | <out_false> | Выходной итератор для записи элементов, которые не удовлетворяют предикату | <out_true> | Выходной итератор для записи элементов, удовлетворяющих предикату в | <p> | Предикат для деления элементов входной последовательности. |
|