dune-typetree
2.3.1
|
Implementation Helper for constructors of composite nodes. More...
#include <dune/typetree/compositenode.hh>
Public Types | |
typedef T & | type |
The correct child type. More... | |
Static Public Member Functions | |
static T | default_value () |
Method providing a default value for empty children. More... | |
Implementation Helper for constructors of composite nodes.
Using this struct for all but the first constructor argument in a composite node implementation makes it possible to only have a single constructor regardless of the number of actual children of the node.
It should be used like this:
typedef T& Dune::TypeTree::OptionalChild< T >::type |
The correct child type.
|
inlinestatic |
Method providing a default value for empty children.
References value.