Support Class Library
A set of tools providing classes and utility
DefaultConstructible.h
Go to the documentation of this file.
1 #pragma once
2 
4 //#include <scl/concepts/require.h>
5 #include <scl/macros.h>
7 
8 namespace scl{
9  namespace concepts{
14  template <class T>
16  constexpr operator bool() const{
17  using namespace scl::tools;
19  static_assert(meta::is_default_constructible<T>(), "DefaultConstructible<T>: T is not default constructible");
20  return true;
21  }
22  };
23  }
24 }
Global namespace of the SCL.
Definition: alias.hpp:3
Destructible concept, a type T is destructible if it defines a destructor that won&#39;t throw...
Definition: Destructible.h:12
General purpose tooling.
Definition: iostream.hpp:4
DefaultConstructible concept, a type T is default constructible if it defines a default constructor...
#define static_require(cpt)
Definition: macros.h:6