Dune Core Modules (2.8.0)

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
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
STL namespace.
Calculator of the greatest common divisor.
Definition: gcd.hh:16
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)