cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
limits.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_LIMITS_H
4#define pRC_CORE_BASIC_LIMITS_H
5
6#include <limits>
7
9
10namespace pRC
11{
12 template<class T>
14
15 template<class T>
16 struct NumericLimits<T const> : NumericLimits<T>
17 {
18 };
19
20 template<IsIntegral T>
21 struct NumericLimits<T>
22 {
23 static constexpr Size digits()
24 {
25 return std::numeric_limits<T>::digits;
26 }
27
28 static constexpr auto min()
29 {
30 return std::numeric_limits<T>::min();
31 }
32
33 static constexpr auto max()
34 {
35 return std::numeric_limits<T>::max();
36 }
37
38 static constexpr auto lowest()
39 {
40 return std::numeric_limits<T>::lowest();
41 }
42 };
43}
44#endif // pRC_CORE_BASIC_LIMITS_H
Definition value.hpp:12
Definition cholesky.hpp:10
std::size_t Size
Definition basics.hpp:31
static constexpr auto min()
Definition limits.hpp:28
static constexpr auto max()
Definition limits.hpp:33
static constexpr Size digits()
Definition limits.hpp:23
static constexpr auto lowest()
Definition limits.hpp:38
Definition limits.hpp:13