tlx
CS_IfSwap< Comparator > Class Template Reference

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_
 

Detailed Description

template<typename Comparator>
class tlx::sort_networks::CS_IfSwap< Comparator >

Conditional swap implementation used for sorting networks: trivial portable C++ implementation with custom comparison method and std::swap().

Definition at line 32 of file cswap.hpp.

Constructor & Destructor Documentation

CS_IfSwap ( Comparator  cmp)
inline

Definition at line 35 of file cswap.hpp.

Member Function Documentation

void operator() ( Type &  left,
Type &  right 
)
inline

Definition at line 38 of file cswap.hpp.

Member Data Documentation

Comparator cmp_
protected

Definition at line 43 of file cswap.hpp.


The documentation for this class was generated from the following file: