62#ifndef __ADS_ParallelMerge
63 #define __ADS_ParallelMerge
123template< std::random_access_iterator I ,
class C = std::less<> >
124[[nodiscard]] std::vector< std::size_t >
158template<
Executor E , std::random_access_iterator I ,
159 std::random_access_iterator O ,
class C = std::less<> >
160O
multiwayMerge( E & ex ,
const std::vector< std::pair< I , I > > & R , O out ,
171#include "ADS/parallel/impl/ParallelMerge.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The layer of execution of the parallel algorithms of ADS, beyond the book: an executor runs the calls...
The engineered merge of sorted sequences, beyond the book [see LoserTree.h for the tree of losers of...
the executors, whose bulk( n , f ) runs on their threads and returns when they have returned,...
Definition Executor.h:168
std::vector< std::size_t > multisequenceSplit(const std::vector< std::pair< I, I > > &R, std::size_t r, C less=C())
the split of the sorted ranges at the rank of the stable merge, i.e., the number of items that each...
O multiwayMerge(E &ex, const std::vector< std::pair< I, I > > &R, O out, C less=C())
the items of the sorted ranges merged into out on the threads of ex, the range of lower index first ...