StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::Swappable Concept Reference

Type that can be swapped with std::swap (std::is_swappable). More...

#include <StormByte/type_traits/object_semantics.hxx>

Concept definition

template<typename T>
concept StormByte::Type::Swappable = std::is_swappable_v<T>
Type that can be swapped with std::swap (std::is_swappable).
Definition object_semantics.hxx:327

Detailed Description

Type that can be swapped with std::swap (std::is_swappable).

Template Parameters
TType to test.
template<Type::Swappable T>
void exchange(T& a, T& b) { std::swap(a, b); }