Dune::Conversion< From, To > Class Template Reference
[Common (foundation classes)]

Checks wether a type is convertible to another. More...

#include <dune/common/typetraits.hh>

List of all members.

Classes

struct  Big

Public Types

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

Public Member Functions

 Conversion ()

Detailed Description

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

Checks wether a type is convertible to another.

Template Parameters:
From type you want to convert
To type you want to obtain

Inspired by this website


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.


Constructor & Destructor Documentation

template<class From, class To>
Dune::Conversion< From, To >::Conversion (  )  [inline]

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].