Checks wether a type is convertible to another.
More...
#include <dune/common/typetraits.hh>
|
enum | { exists = sizeof(test(makeFrom())) == sizeof(Small),
isTwoWay = exists && Conversion<To,From>::exists,
sameType = false
} |
|
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
template<class From, class To>
Enumerator |
---|
exists |
True if the conversion exists.
|
isTwoWay |
Whether the conversion exists in both ways.
|
sameType |
True if To and From are the same type.
|
template<class From, class To>
The documentation for this class was generated from the following file: