tetl 0.1.0
Embedded Template Library
|
Go to the source code of this file.
Namespaces | |
namespace | etl |
Functions | |
template<typename InputIt, typename OutputIt1, typename OutputIt2, typename Predicate> | |
constexpr auto | partition_copy (InputIt first, InputIt last, OutputIt1 destinationTrue, OutputIt2 destinationFalse, Predicate p) -> pair< OutputIt1, OutputIt2 > |
Copies the elements from the range [first, last) to two different ranges depending on the value returned by the predicate p. The elements that satisfy the predicate p are copied to the range beginning at destination_true. The rest of the elements are copied to the range beginning at destination_false. | |