1#ifndef __DUNE_ACFEM_EXPRESSIONS_DYNAMICSTORAGE_HH__
2#define __DUNE_ACFEM_EXPRESSIONS_DYNAMICSTORAGE_HH__
4#include "expressiontraits.hh"
6#include "optimizationbase.hh"
35 template<
class T,
class SFINAE =
void>
47 template<
class T,
class Copy = FalseType>
48 constexpr auto denseStorage(T&& t, Copy = Copy{})
50 return DenseStorageType<T>{};
54 constexpr auto denseStorage(T&& t,
TrueType)
56 return DenseStorageType<T>(std::forward<T>(t));
59 template<
bool copy,
class T>
60 constexpr auto denseStorage(T&& t)
62 return denseStorage(std::forward<T>(t), BoolConstant<copy>{});
typename FloatingPointClosureHelper< T >::Type FloatingPointClosure
Template alias.
Definition: fieldpromotion.hh:74
BoolConstant< true > TrueType
Alias for std::true_type.
Definition: types.hh:107
A traits class which provides a type suitable to store the values of the given expression T and any e...
Definition: densestorage.hh:36