tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
etl::derived_from Concept Reference

The concept derived_from<Derived, Base> is satisfied if and only if Base is a class type that is either Derived or a public and unambiguous base of Derived, ignoring cv-qualifiers. Note that this behaviour is different to is_base_of when Base is a private or protected base of Derived. More...

#include <derived_from.hpp>

Concept definition

template<typename Derived, typename Base>
The concept derived_from<Derived, Base> is satisfied if and only if Base is a class type that is eith...
Definition derived_from.hpp:17
constexpr bool is_base_of_v
Definition is_base_of.hpp:39
constexpr bool is_convertible_v
Definition is_convertible.hpp:46

Detailed Description

The concept derived_from<Derived, Base> is satisfied if and only if Base is a class type that is either Derived or a public and unambiguous base of Derived, ignoring cv-qualifiers. Note that this behaviour is different to is_base_of when Base is a private or protected base of Derived.