function object
std::ranges::partition_copy
- Header
<algorithm>- Draft
- [alg.partitions]
- Scope
std::ranges- cppreference
- std::ranges::partition_copy
Synopsis
inline constexpr /* implementation-defined */ partition_copy = {};Call signatures
partition_copy is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template< std::ranges::input_range R, std::weakly_incrementable O1, std::weakly_incrementable O2, class Proj = std::identity, std::indirect_unary_predicate<std::projected<iterator_t<R>, Proj>> Pred> requires std::indirectly_copyable<iterator_t<R>, O1> && std::indirectly_copyable<iterator_t<R>, O2> constexpr std::ranges::partition_copy_result<borrowed_iterator_t<R>, O1, O2> partition_copy( R&& r, O1 out_true, O2 out_false, Pred pred, Proj proj = {}); - (2)
template< std::input_iterator I, std::sentinel_for<I> S, std::weakly_incrementable O1, std::weakly_incrementable O2, class Proj = std::identity, std::indirect_unary_predicate<std::projected<I, Proj>> Pred> requires std::indirectly_copyable<I, O1> && std::indirectly_copyable<I, O2> constexpr std::ranges::partition_copy_result<I, O1, O2> partition_copy( I first, S last, O1 out_true, O2 out_false, Pred pred, Proj proj = {}); - (3)
template< class ExecutionPolicy, std::random_access_iterator I, std::sized_sentinel_for<I> S, std::random_access_iterator O1, std::sized_sentinel_for<O1> OutS1, std::random_access_iterator O2, std::sized_sentinel_for<O2> OutS2, class Proj = std::identity, std::indirect_unary_predicate<std::projected<I, Proj>> Pred> requires execution-policy<ExecutionPolicy> && std::indirectly_copyable<I, O1> && std::indirectly_copyable<I, O2> std::ranges::in_out_out_result<I, O1, O2> partition_copy( ExecutionPolicy&&, I first, S last, O1 out_true, OutS1 last_true, O2 out_false, OutS2 last_false, Pred pred, Proj proj = {}) noexcept; - (4)
template< class ExecutionPolicy, sized_random_access_range R, sized_random_access_range OutR1, sized_random_access_range OutR2, class Proj = std::identity, std::indirect_unary_predicate<std::projected<std::ranges::iterator_t<R>, Proj>> Pred> requires execution-policy<ExecutionPolicy> && std::indirectly_copyable<std::ranges::iterator_t<R>, std::ranges::iterator_t<OutR1>> && std::indirectly_copyable<std::ranges::iterator_t<R>, std::ranges::iterator_t<OutR2>> std::ranges::in_out_out_result<std::ranges::borrowed_iterator_t<R>, std::ranges::borrowed_iterator_t<OutR1>, std::ranges::borrowed_iterator_t<OutR2>> partition_copy( ExecutionPolicy&& exec, R&& r, OutR1&& out_true_r, OutR2&& out_false_r, Pred pred, Proj proj = {}) noexcept;