Support Class Library
A set of tools providing classes and utility
include
scl
concepts
DerivedFrom.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
scl/tools/meta/is_base_of.h
>
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
}
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
is_base_of.h
scl::tools
General purpose tooling.
Definition:
iostream.hpp:4
scl::concepts::DerivedFrom
DerivedFrom concept, a type Derived is derived from another type Base if Derived is a derives from Ba...
Definition:
DerivedFrom.h:13
Generated by
1.8.13