4#ifndef TETL_ALGORITHM_PARTITION_COPY_HPP
5#define TETL_ALGORITHM_PARTITION_COPY_HPP
7#include <etl/_utility/pair.hpp>
19template <
typename InputIt,
typename OutputIt1,
typename OutputIt2,
typename Predicate>
21partition_copy(InputIt first, InputIt last, OutputIt1 destinationTrue, OutputIt2 destinationFalse, Predicate p)
22 ->
pair<OutputIt1, OutputIt2>
24 for (; first != last; ++first) {
26 *destinationTrue = *first;
29 *destinationFalse = *first;
34 return {destinationTrue, destinationFalse};
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 retur...
Definition partition_copy.hpp:21
Definition adjacent_find.hpp:9
etl::pair is a class template that provides a way to store two heterogeneous objects as a single unit...
Definition pair.hpp:37