2.10.0
Freundlich's C++ toolkit
Public Member Functions
fcppt::type_traits::is_base_of< Base, Derived > Struct Template Reference

Detailed Description

template<typename Base, typename Derived>
struct fcppt::type_traits::is_base_of< Base, Derived >

Like std::is_base_of, but only works on complete types.

std::is_base_of is undefined behavior if the Derived type is incomplete, which is another source of mistakes. This class, instead, checks if both Base and Derived are complete.

Template Parameters
BaseA complete type
DerivedA complete type
Inheritance diagram for fcppt::type_traits::is_base_of< Base, Derived >:

Public Member Functions

 FCPPT_ASSERT_COMPLETE (Base)
 
 FCPPT_ASSERT_COMPLETE (Derived)
 

Member Function Documentation

◆ FCPPT_ASSERT_COMPLETE() [1/2]

template<typename Base , typename Derived >
fcppt::type_traits::is_base_of< Base, Derived >::FCPPT_ASSERT_COMPLETE ( Base  )

◆ FCPPT_ASSERT_COMPLETE() [2/2]

template<typename Base , typename Derived >
fcppt::type_traits::is_base_of< Base, Derived >::FCPPT_ASSERT_COMPLETE ( Derived  )