Dune Core Modules (2.4.2)

Dune::Conversion< From, To > Class Template Reference

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

#include <dune/common/typetraits.hh>

Public Types

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

Detailed Description

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

Checks wether a type is convertible to another.

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

Inspired by this website

Member Enumeration Documentation

◆ anonymous enum

template<class From , class To >
anonymous enum

True if the conversion exists.


Whether the conversion exists in both ways.


True if To and From are the same type.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 19, 22:31, 2024)