NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
derived_from 概念参考

检查类型是否派生自另一个类型 更多...

#include <concepts.hpp>

概念定义

template<typename Derived, typename Base>
检查类型From是否可以转换为类型To
检查类型是否派生自另一个类型
NEFORCE_INLINE17 constexpr bool is_base_of_v
is_base_of的便捷变量模板

详细描述

检查类型是否派生自另一个类型

模板参数
Derived派生类型
Base基类型

要求Derived是Base的派生类,并且可以安全地进行指针转换。

在文件 concepts.hpp86 行定义.