|
dune-typetree 2.8.0
|
Loading...
Searching...
No Matches
utility.hh
Go to the documentation of this file.
51 typename std::enable_if<!std::is_lvalue_reference<T>::value,std::shared_ptr<T> >::type convert_arg(T&& t)
241 static const std::size_t maxDepth = ChildInfo::depth > NextChild::maxDepth ? ChildInfo::depth : NextChild::maxDepth;
315 void _apply_to_tuple(T&& t, F&& f, std::index_sequence<i...>,apply_to_tuple_policy::no_pass_index)
void apply_to_tuple(T &&t, F &&f, Policy=apply_to_tuple_policy::default_policy())
Apply a functor to each element of a std::tuple.
Definition utility.hh:338
void discard(Args &&... args)
No-op function to make calling a function on a variadic template argument pack legal C++.
Definition utility.hh:294
no_pass_index default_policy
Default policy.
Definition utility.hh:307
auto leafCount(const Tree &tree)
The number of leaf nodes in the Tree.
Definition visitor.hh:530
auto nodeCount(const Tree &tree)
The total number of nodes in the Tree.
Definition visitor.hh:522
auto depth(const Tree &tree)
The depth of the TypeTree.
Definition visitor.hh:506
int size() const
virtual void operator()()=0
std::shared_ptr< T > stackobject_to_shared_ptr(T &t)
Struct for obtaining some basic structural information about a TypeTree.
Definition utility.hh:168
static const std::size_t leafCount
The number of leaf nodes in the TypeTree.
Definition utility.hh:183
static const std::size_t depth
The depth of the TypeTree.
Definition utility.hh:177
static const std::size_t nodeCount
The total number of nodes in the TypeTree.
Definition utility.hh:180
Do not pass the index of the current tuple to the functor.
Definition utility.hh:301
Pass the index of the current tuple to the functor as its first argument in a std::integral_constant.
Definition utility.hh:304
T max(T... args)
T reduce(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8