std::is_base_of
std::is_base_of
Defined in header <type_traits> | ||
---|---|---|
template< class Base, class Derived > struct is_base_of; | (since C++11) |
If Derived
is derived from Base
or if both are the same non-union class, provides the member constant value
equal to true
. Otherwise value
is false
.
If both Base
and Derived
are non-union class types, and they are not the same type (ignoring cv-qualification), Derived
shall be a 登录查看完整内容