Dune Core Modules (2.8.0)

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
Dune namespace.
Definition: alignedallocator.hh:11
STL namespace.
Calculate the least common multiple of two numbers.
Definition: lcm.hh:32
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)