14#ifndef TLX_SORT_NETWORKS_CSWAP_HEADER
15#define TLX_SORT_NETWORKS_CSWAP_HEADER
27namespace sort_networks {
31template <
typename Comparator>
37 template <
typename Type>
39 if (
cmp_(right, left)) { std::swap(left, right); }
Conditional swap implementation used for sorting networks: trivial portable C++ implementation with c...
void operator()(Type &left, Type &right)
CS_IfSwap(Comparator cmp)