Loading...
Searching...
No Matches
conditional.hh
Go to the documentation of this file.
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
#ifndef DUNE_COMMON_CONDITIONAL_HH
#define DUNE_COMMON_CONDITIONAL_HH
namespace Dune
{
template<typename T1, typename T2>
const T1 cond(bool b, const T1 & v1, const T2 & v2)
{
return (b ? v1 : v2);
}
} // end namespace Dune
#endif // DUNE_COMMON_CONDITIONAL_HH
Dune
Dune namespace
Definition alignedallocator.hh:13
Dune::cond
const T1 cond(bool b, const T1 &v1, const T2 &v2)
conditional evaluate
Definition conditional.hh:28