RandomLib  1.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Functions
std Namespace Reference

Functions

template<class Generator >
void swap (RandomLib::RandomCanonical< Generator > &r, RandomLib::RandomCanonical< Generator > &s) throw ()
 
template<class Algorithm , class Mixer >
void swap (RandomLib::RandomEngine< Algorithm, Mixer > &r, RandomLib::RandomEngine< Algorithm, Mixer > &s) throw ()
 

Function Documentation

template<class Generator >
void std::swap ( RandomLib::RandomCanonical< Generator > &  r,
RandomLib::RandomCanonical< Generator > &  s 
)
throw (
)

Swap two RandomCanonicals. This is about 3x faster than the default swap.

Definition at line 1290 of file RandomCanonical.hpp.

Referenced by coverage32(), coverage64(), RandomLib::RandomNumber< bits >::swap(), RandomLib::MPFRRandom< bits >::swap(), and RandomLib::RandomEngine< Algorithm, Mixer >::swap().

template<class Algorithm , class Mixer >
void std::swap ( RandomLib::RandomEngine< Algorithm, Mixer > &  r,
RandomLib::RandomEngine< Algorithm, Mixer > &  s 
)
throw (
)

Swap two RandomEngines. This is about 3x faster than the default swap.

Template Parameters
Algorithmthe algorithm for the RandomEngine.
Mixerthe mixer for the RandomEngine.
Parameters
[in,out]rthe first RandomEngine to swap.
[in,out]sthe second RandomEngine to swap.

Definition at line 633 of file RandomEngine.hpp.