Dune::Conversion< From, To > Class Template Reference
[Common]

#include <typetraits.hh>

List of all members.


Detailed Description

template<class From, class To>
class Dune::Conversion< From, To >

Checks wether a type is derived from another.

Inspired by this website

Public Types

enum  { exists = sizeof(test(makeFrom())) == sizeof(Small), isTwoWay = exists && Conversion<To, exists = sizeof(test(makeFrom())) == sizeof(Small), sameType = false }


Member Enumeration Documentation

template<class From, class To>
anonymous enum

Enumerator:
exists  True if the conversion exists.
isTwoWay  Whether the conversion exists in both ways.
exists  True if the conversion exists.
sameType  True if To and From are the same type.


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

Generated on Thu Apr 2 10:39:54 2009 for dune-common by  doxygen 1.5.6