StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::DerivedFrom Concept Reference

Derived derives from Base (std::is_base_of). More...

#include <StormByte/type_traits/relations.hxx>

Concept definition

template<typename Derived, typename Base>
concept StormByte::Type::DerivedFrom = std::is_base_of_v<Base, Derived>
Derived derives from Base (std::is_base_of).
Definition relations.hxx:113

Detailed Description

Derived derives from Base (std::is_base_of).

Template Parameters
DerivedCandidate derived type.
BaseCandidate base type.

Not std::derived_from: that also requires an unambiguous, public base-to-derived conversion. This only checks the inheritance relationship itself.

struct Base {};
struct Derived : Base {};