dune-common  2.5.1
Public Types | List of all members
Dune::Conversion< From, To > Struct Template Reference

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

#include <dune/common/typetraits.hh>

Public Types

enum  { exists = std::is_convertible<From,To>::value, isTwoWay = std::is_convertible<From,To>::value && std::is_convertible<To,From>::value, sameType = std::is_same<From,To>::value }
 

Detailed Description

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

Checks whether a type is convertible to another.

Template Parameters
Fromtype you want to convert
Totype you want to obtain

Member Enumeration Documentation

◆ anonymous enum

template<class From , class To >
anonymous enum
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.


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