emp-toolkit
swappable.h File Reference
#include "bit.h"

Go to the source code of this file.

Classes

class  Swappable< T >
 

Functions

template<typename T >
If (const Bit &select, const T &o1, const T &o2)
 
template<typename T >
void swap (const Bit &swap, T &o1, T &o2)
 

Function Documentation

§ If()

template<typename T >
T If ( const Bit select,
const T &  o1,
const T &  o2 
)
inline

§ swap()

template<typename T >
void swap ( const Bit swap,
T &  o1,
T &  o2 
)
inline