Karma Engine
Loading...
Searching...
No Matches
Karma::TIsDerivedFrom< DerivedType, BaseType > Struct Template Reference

#include <SubClassOf.h>

Public Types

typedef char No[1]
 
typedef char Yes[2]
 

Static Public Member Functions

static Yes & Test (BaseType *)
 
static Yes & Test (const BaseType *)
 
static No & Test (...)
 
static DerivedType * DerivedTypePtr ()
 

Static Public Attributes

static constexpr bool Value = sizeof(Test(DerivedTypePtr())) == sizeof(Yes)
 
static constexpr bool IsDerived = Value
 

Detailed Description

template<typename DerivedType, typename BaseType>
struct Karma::TIsDerivedFrom< DerivedType, BaseType >

Is type DerivedType inherited from BaseType.


The documentation for this struct was generated from the following file: