function object
std::ranges::set_union
- Header
<algorithm>- Draft
- [set.union]
- Scope
std::ranges- cppreference
- std::ranges::set_union
Synopsis
inline constexpr /* implementation-defined */ set_union = {};Call signatures
set_union 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 R1, std::ranges::input_range R2, std::weakly_incrementable O, class Comp = std::ranges::less, class Proj1 = std::identity, class Proj2 = std::identity> requires std::mergeable<iterator_t<R1>, iterator_t<R2>, O, Comp, Proj1, Proj2> constexpr std::ranges::set_union_result<borrowed_iterator_t<R1>, borrowed_iterator_t<R2>, O> set_union( R1&& r1, R2&& r2, O result, Comp comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); - (2)
template< std::input_iterator I1, std::sentinel_for<I1> S1, std::input_iterator I2, std::sentinel_for<I2> S2, std::weakly_incrementable O, class Comp = std::ranges::less, class Proj1 = std::identity, class Proj2 = std::identity> requires std::mergeable<I1, I2, O, Comp, Proj1, Proj2> constexpr std::ranges::set_union_result<I1, I2, O> set_union( I1 first1, S1 last1, I2 first2, S2 last2, O result, Comp comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); - (3)
template< class ExecutionPolicy, sized-random-access-range R, class Pred = std::ranges::equal_to, class Proj = std::identity, class T = std::projected_value_t<std::ranges::iterator_t<R>, Proj>> requires execution-policy<ExecutionPolicy> && std::indirectly_comparable<std::ranges::iterator_t<R>, const T*, Pred, Proj> decltype(auto) set_union( ExecutionPolicy&&, R&& r, std::ranges::range_difference_t<R> count, const T& value, Pred pred = {}, Proj proj = {}) noexcept; - (4)
template< class ExecutionPolicy, std::random_access_iterator I, std::sized_sentinel_for<I> S, class Pred = std::ranges::equal_to, class Proj = std::identity, class T = std::projected_value_t<I, Proj>> requires execution-policy<ExecutionPolicy> && std::indirectly_comparable<I, const T*, Pred, Proj> decltype(auto) set_union( ExecutionPolicy&&, I first, S last, std::iter_difference_t<I> count, const T& value, Pred pred = {}, Proj proj = {}) noexcept;