Geogram Version 1.10.2
A programming library of geometric algorithms
Loading...
Searching...
No Matches
algorithm.h File Reference

Wrappers around parallel implementation of STL. More...

#include <geogram/basic/common.h>
#include <geogram/basic/numeric.h>
#include <algorithm>
#include <random>

Go to the source code of this file.

Namespaces

namespace  GEO
 Global Vorpaline namespace.

Functions

bool GEO::uses_parallel_algorithm (size_t size=0)
 Checks whether parallel algorithms are used.
template<typename ITERATOR>
void GEO::sort (const ITERATOR &begin, const ITERATOR &end)
 Sorts elements in parallel.
template<typename ITERATOR, typename CMP>
void GEO::sort (const ITERATOR &begin, const ITERATOR &end, const CMP &cmp)
 Sorts elements in parallel.
template<typename VECTOR>
void GEO::sort_unique (VECTOR &v)
 Sorts a vector and suppresses all duplicated elements.
template<typename ITERATOR>
void GEO::sort_3 (ITERATOR items)
 Specialized sort routine for 3 elements.
template<typename ITERATOR>
void GEO::sort_4 (ITERATOR items)
 Specialized sort routine for 4 elements.
template<typename ITERATOR>
void GEO::random_shuffle (const ITERATOR &begin, const ITERATOR &end)
 Applies a random permutation to a sequence.

Detailed Description

Wrappers around parallel implementation of STL.

Definition in file algorithm.h.