libsemigroups  v3.0.0
C++ library for semigroups and monoids
Loading...
Searching...
No Matches
Swap< Value, typename >
template<typename Value, typename = void>
struct libsemigroups::Swap< Value, typename >

Defined in adapters.hpp.

This type should be a stateless trivially default constructible with a call operator of signature void operator()(Value&, Value&) (possibly noexcept, inline and/or constexpr also) which swaps its arguments.

Template Parameters
Valuethe type of objects to swap.

The second template parameter exists for SFINAE.

Used by:

Public Member Functions

void operator() (Value &x, Value &y)
 Swap x and y.
 

Member Function Documentation

◆ operator()()

template<typename Value, typename = void>
void operator() ( Value & x,
Value & y )
inline

This call operator swaps x and y using std::swap.

Parameters
xreference to Value to swap with y.
yreference to Value to swap with x.

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