cds  2.3.2
cds::opt::swap_policy< Type > Struct Template Reference

Swap policy option. More...

#include <cds/opt/options.h>

Detailed Description

template<typename Type>
struct cds::opt::swap_policy< Type >

Swap policy option.

The swap policy specifies an algorithm for swapping two objects. Usually, the default policy is std::swap (see opt::v::default_swap_policy):

struct std_swap {
template <typename T>
void operator ()( T& v1, T& v2 )
{
std::swap( v1, v2 );
}
};

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

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:51 by Doxygen 1.8.13