Support Class Library
A set of tools providing classes and utility
Copyable.h
Go to the documentation of this file.
1 #pragma once
2 
3 //#include <scl/concepts/require.h>
4 #include <scl/macros.h>
8 
9 namespace scl{
10  namespace concepts{
15  template <class T>
16  struct Copyable{
17  constexpr operator bool() const{
18  return META::constexpr_assert<CopyConstructible<T>{} && CopyAssignable<T>{}>();
19  }
20  };
21  }
22 }
CopyAssignable concept, a type T is copy assignable if meta::is_copy_assignable<T>() is true...
Global namespace of the SCL.
Definition: alias.hpp:3
Copyable concept, a type is copyable if it is both copy constructible and copy assignable.
Definition: Copyable.h:16