dune-common 2.8.0
Loading...
Searching...
No Matches
lcm.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_LCM_HH
4#define DUNE_LCM_HH
5
6#warning "This header is deprecated and will be removed after release 2.8. Use std::lcm instead."
7
12#include <numeric>
13
14namespace Dune
15{
16
30 template<long m, long n>
31 struct [[deprecated("Will be removed after Dune 2.8. Use std::lcm instead.")]] Lcm
32 {
33 static void conceptCheck()
34 {
35 static_assert(0<m, "m must be positive!");
36 static_assert(0<n, "n must be positive!");
37 }
42 constexpr static long value = std::lcm(m,n);
43 };
44}
45
46#endif
static void conceptCheck()
Definition lcm.hh:33
Dune namespace.
Definition alignedallocator.hh:11
Calculate the least common multiple of two numbers.
Definition lcm.hh:32
T lcm(T... args)