Files
cppdraft_translate/cppdraft/alg/req/mergeable.md
2025-10-25 03:02:53 +03:00

1.7 KiB

[alg.req.mergeable]

24 Iterators library [iterators]

24.3 Iterator requirements [iterator.requirements]

24.3.7 Common algorithm requirements [alg.req]

24.3.7.7 Concept mergeable [alg.req.mergeable]

1

#

The mergeable concept specifies the requirements of algorithms that merge sorted sequences into an output sequence by copying elements.

template<class I1, class I2, class Out, class R = ranges::less, class P1 = identity, class P2 = identity>concept mergeable =input_iterator &&input_iterator &&weakly_incrementable &&indirectly_copyable<I1, Out> &&indirectly_copyable<I2, Out> &&indirect_strict_weak_order<R, projected<I1, P1>, projected<I2, P2>>;