Instigate Open Source Documentation

instigate::generic::conversion< T, U > Class Template Reference

This class helps us to detect convertibility and inheritance at compile time. To see whether U is same type as T we can call:. More...

#include <base.hpp>

List of all members.

Static Public Attributes

Public members
static const bool exists = (sizeof(small) == sizeof(test(makeT())))
static const bool same_type = false
static const bool super_sub_class

Classes

class  big


Detailed Description

template<typename T, typename U>
class instigate::generic::conversion< T, U >

This class helps us to detect convertibility and inheritance at compile time. To see whether U is same type as T we can call:.

 bool same = conversion<T, U>::same_type;
To see whether T is convertible to U we can call:
 bool convertible = conversion<T, U>::exists;
To see whether T is super class of U we can call:
 bool super_class = conversion<T, U>::super_sub_class;

Member Data Documentation

template<typename T, typename U>
const bool instigate::generic::conversion< T, U >::super_sub_class [static]

Initial value:

 
                conversion<const U*, const T*>::exists &&
                !conversion<const T*, const void*>::same_type


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


© Instigate CJSC, Open Source