QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::trait::is_ptr_base_of<B, D>::value : return true if B and D are pointer type and (*B) is a base class of (*D) or if B and D are same type, otherwise return false More...

#include <is_ptr_base_of.h>

Public Types

enum  { value = (std::is_pointer<B>::value && std::is_pointer<D>::value && (sizeof(qx::trait::is_ptr_base_of<B, D>::removePtr(b, d)) == sizeof(char))) }
 
typedef std::conditional< qx::trait::is_ptr_base_of< B, D >::value, std::true_type, std::false_type >::type type
 

Static Private Member Functions

template<typename V , typename W >
static std::conditional< std::is_base_of< V, W >::value, char, int >::type removePtr (const volatile V *const volatile, const volatile W *const volatile)
 
static int removePtr (...)
 

Static Private Attributes

static B b
 
static D d
 

Detailed Description

template<typename B, typename D>
class qx::trait::is_ptr_base_of< B, D >

qx::trait::is_ptr_base_of<B, D>::value : return true if B and D are pointer type and (*B) is a base class of (*D) or if B and D are same type, otherwise return false

Definition at line 54 of file is_ptr_base_of.h.

Member Typedef Documentation

◆ type

template<typename B , typename D >
typedef std::conditional<qx::trait::is_ptr_base_of<B,D>::value,std::true_type,std::false_type>::type qx::trait::is_ptr_base_of< B, D >::type

Definition at line 70 of file is_ptr_base_of.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename B , typename D >
anonymous enum
Enumerator
value 

Definition at line 68 of file is_ptr_base_of.h.

Member Function Documentation

◆ removePtr() [1/2]

template<typename B , typename D >
static int qx::trait::is_ptr_base_of< B, D >::removePtr ( ...)
staticprivate

◆ removePtr() [2/2]

template<typename B , typename D >
template<typename V , typename W >
static std::conditional< std::is_base_of< V, W >::value, char, int >::type qx::trait::is_ptr_base_of< B, D >::removePtr ( const volatile V *const volatile ,
const volatile W *const volatile  )
staticprivate

Member Data Documentation

◆ b

template<typename B , typename D >
B qx::trait::is_ptr_base_of< B, D >::b
staticprivate

Definition at line 63 of file is_ptr_base_of.h.

◆ d

template<typename B , typename D >
D qx::trait::is_ptr_base_of< B, D >::d
staticprivate

Definition at line 64 of file is_ptr_base_of.h.


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