Support Class Library
A set of tools providing classes and utility
DerivedFrom.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace scl{
6  namespace concepts{
12  template <class Derived, class Base>
13  struct DerivedFrom{
14  constexpr operator bool() const{
15  using namespace scl::tools;
16  static_assert(meta::is_base_of<Base, Derived>(), "DerivedFrom<Derived, Base>: Derived is not derived from Base");
17  return true;
18  }
19  };
20  }
21 }
Global namespace of the SCL.
Definition: alias.hpp:3
General purpose tooling.
Definition: iostream.hpp:4
DerivedFrom concept, a type Derived is derived from another type Base if Derived is a derives from Ba...
Definition: DerivedFrom.h:13