Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::derived_from_unified_base Concept Reference

Determines whether T is derived of unified_base with the provided tag type. More...

#include <unified_base.hpp>

Concept definition

template<class T, class TTag>
concept sl::derived_from_unified_base = std::is_base_of_v<unified_base<TTag>, std::remove_cvref_t<T>>
Determines whether T is derived of unified_base with the provided tag type.
Definition: unified_base.hpp:34

Detailed Description

Determines whether T is derived of unified_base with the provided tag type.

Template Parameters
TThe type to check.
TTagThe tag type to check for.
Note
This concepts makes use of std::is_base_of_v instead of std::derived_from because the former detects private inheritance, which is in fact the intended inheritance type.