DUNE
Distributed and Unified Numerics Environment
DUNE PDELab (2.8)
dune
common
gcd.hh
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_GCD_HH
4
#define DUNE_GCD_HH
5
#warning "This header is deprecated and will be removed after Dune release 2.8. Use std::gcd instead"
6
7
#include <numeric>
8
9
namespace
Dune
10
{
14
template
<
long
a,
long
b>
15
struct
[[deprecated("Will be removed after
Dune
2.8. Use
std
::gcd from <numeric> instead!")]]
Gcd
16
{
19
constexpr
static
long
value = std::gcd(a,b);
20
};
21
25
}
26
27
#endif
Dune
Dune namespace.
Definition:
alignedallocator.hh:11
std
STL namespace.
Dune::Gcd
Calculator of the greatest common divisor.
Definition:
gcd.hh:16
|
Legal Statements / Impressum
| Hosted by
TU Dresden
| generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)