Support Class Library
A set of tools providing classes and utility
Destructible.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace scl{
6  namespace concepts{
11  template <class T>
12  struct Destructible{
13  constexpr operator bool() const{
14  using namespace scl::tools;
15  static_assert(meta::is_nothrow_destructible<T>(), "Destructible<T>: T is not nothrow destructible");
16  return true;
17  }
18  };
19  }
20 }
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