StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
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:261

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); }