All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::Swappable< T, U > Struct Template Reference

Checks if a type is swappable. More...

Inherits gears::concepts::And< Args >.

Detailed Description

template<typename T, typename U = T>
struct gears::concepts::Swappable< T, U >

A Binary concept that checks if a type is swappable.

To be swappable, then LValueSwappable and RValueSwappable must be valid. That is to say, swap(x, y) must be valid for both l-values and r-values.

Template Parameters
TLeft type to check
URight type to check

Definition at line 323 of file basic.hpp.