StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
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:84

Detailed Description

Derived derives from Base (std::is_base_of).

Template Parameters
DerivedCandidate derived type.
BaseCandidate base type.
Note
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 {};