DUNE-ACFEM (unstable)

powers.hh
1#ifndef __DUNE_ACFEM_EXPRESSIONS_POWERS_HH__
2#define __DUNE_ACFEM_EXPRESSIONS_POWERS_HH__
3
4#include "runtimeequal.hh"
5#include "expressionoperations.hh"
6
7namespace Dune
8{
9
10 namespace ACFem
11 {
12
13 namespace Expressions
14 {
15 using namespace Literals;
16
29 template<class T1, class T2>
31 T1, T2,
32 std::enable_if_t<(IsExponentiationExpression<T1>::value
33 && IsExponentiationExpression<T2>::value
34 && std::is_same<BaseOfPower<T1>, BaseOfPower<T2> >::value
35 && ExponentOfPower<T1>::value == ExponentOfPower<T2>::value
36 )> >
37 : TrueType
38 {};
39
41
42 } // Expressions
43
44 } // ACFem
45
46} // Dune
47
48#endif // __DUNE_ACFEM_EXPRESSIONS_POWERS_HH__
BoolConstant< true > TrueType
Alias for std::true_type.
Definition: types.hh:107
STL namespace.
FalseType by default.
Definition: runtimeequal.hh:103
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)