tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
merge.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename InputIt1, typename InputIt2, typename OutputIt>
constexpr auto merge (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) -> OutputIt
 
template<typename InputIt1, typename InputIt2, typename OutputIt, typename Compare>
constexpr auto merge (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination, Compare comp) -> OutputIt
 Merges two sorted ranges [first1, last1) and [first2, last2) into one sorted range beginning at destination.