Support Class Library
A set of tools providing classes and utility
Swappable.h
Go to the documentation of this file.
1 #pragma once
2 
3 //#ifdef SCL_CPP17
5 
6 namespace scl{
7  namespace concepts{
12  template <class T>
13  struct Swappable{
14  constexpr operator bool() const{
15  using namespace scl::tools;
16  static_assert(meta::is_swappable<T>(), "Swappable<T>: T does not implement swapping mechanisms.");
17  return true;
18  }
19  };
20  }
21 }
22 //#endif
Global namespace of the SCL.
Definition: alias.hpp:3
Swappable concept, a type is swappable if it defines swapping mecanisms.
Definition: Swappable.h:13
General purpose tooling.
Definition: iostream.hpp:4