Dune Core Modules (2.4.2)

Dune::IsBaseOf< Base, Derived > Class Template Reference

Checks wether a type is derived from another. More...

#include <dune/common/typetraits.hh>

Public Types

enum  { value = sizeof(test(makePtr())) == sizeof(Small) }
 

Detailed Description

template<class Base, class Derived>
class Dune::IsBaseOf< Base, Derived >

Checks wether a type is derived from another.

Template Parameters
Basethe potential base class you want to test for
Derivedtype you want to test

Similar idea to this website

Member Enumeration Documentation

◆ anonymous enum

template<class Base , class Derived >
anonymous enum
Enumerator
value 

True if Base is a base class of Derived.


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 29, 22:29, 2024)