Support Class Library
A set of tools providing classes and utility
SemiRegular.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 SemiRegular{
17  constexpr operator bool() const{
18  return META::constexpr_assert<Copyable<T>{} && DefaultConstructible<T>{}>();
19  }
20  };
21  }
22 }
Global namespace of the SCL.
Definition: alias.hpp:3
DefaultConstructible concept, a type T is default constructible if it defines a default constructor...
SemiRegular concept, a type is semi regular if it is Copyable and DefaultConstructible.
Definition: SemiRegular.h:16