CNL  2.0.2 (development)
Compositional Numeric Library
max_digits.h
1 
2 // Copyright John McFarlane 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file ../LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #if !defined(CNL_IMPL_WIDE_INTEGER_MAX_DIGITS_H)
8 #define CNL_IMPL_WIDE_INTEGER_MAX_DIGITS_H
9 
10 #include "../num_traits/max_digits.h"
11 #include "definition.h"
12 
13 #include <limits>
14 
16 namespace cnl {
17  namespace _impl {
18  template<int Digits, typename Narrowest>
19  inline constexpr auto max_digits<wide_integer<Digits, Narrowest>> = std::numeric_limits<int>::max();
20  }
21 }
22 
23 #endif // CNL_IMPL_WIDE_INTEGER_MAX_DIGITS_H
cnl
compositional numeric library
Definition: abort.h:15
std::numeric_limits::max
T max(T... args)