tlx
|
Conditional swap implementation used for sorting networks: trivial portable C++ implementation with custom comparison method and std::swap(). More...
#include <cswap.hpp>
Public Member Functions | |
CS_IfSwap (Comparator cmp) | |
template<typename Type > | |
void | operator() (Type &left, Type &right) |
Protected Attributes | |
Comparator | cmp_ |
Conditional swap implementation used for sorting networks: trivial portable C++ implementation with custom comparison method and std::swap().