cMHN 1.1
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, class = If<>>
14
15 template<class T>
16 struct NumericLimits<T const> : public NumericLimits<T>
17 {
18 };
19
20 template<class 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 cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
std::size_t Size
Definition type_traits.hpp:20
std::enable_if_t< B{}, int > If
Definition type_traits.hpp:68
All< std::is_integral< T >, Not< IsBool< T > > > IsIntegral
Definition type_traits.hpp:180
static constexpr auto min()
Definition limits.hpp:28
static constexpr auto max()
Definition limits.hpp:33
static constexpr auto lowest()
Definition limits.hpp:38
static constexpr Size digits()
Definition limits.hpp:23
Definition limits.hpp:13