dune-common 2.8.0
Loading...
Searching...
No Matches
gcd.hh
Go to the documentation of this file.
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
9namespace 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 namespace.
Definition alignedallocator.hh:11
Calculator of the greatest common divisor.
Definition gcd.hh:16
T gcd(T... args)