DUNE
Distributed and Unified Numerics Environment
Dune Core Modules (2.7.0)
dune
common
conditional.hh
1
#ifndef DUNE_COMMON_CONDITIONAL_HH
2
#define DUNE_COMMON_CONDITIONAL_HH
3
4
namespace
Dune
5
{
6
25
template
<
typename
T1,
typename
T2>
26
const
T1
cond
(
bool
b,
const
T1 & v1,
const
T2 & v2)
27
{
28
return
(b ? v1 : v2);
29
}
30
31
}
// end namespace Dune
32
33
#endif
// DUNE_COMMON_CONDITIONAL_HH
Dune
Dune namespace.
Definition:
alignedallocator.hh:14
Dune::cond
const T1 cond(bool b, const T1 &v1, const T2 &v2)
conditional evaluate
Definition:
conditional.hh:26
|
Legal Statements / Impressum
| Hosted by
TU Dresden
| generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)