CNL  2.0.2 (development)
Compositional Numeric Library
constants.h
1 
2 // Copyright John McFarlane 2021.
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_CHARCONV_CONSTANTS_H)
8 #define CNL_IMPL_CHARCONV_CONSTANTS_H
9 
11 namespace cnl::_impl {
12  constexpr auto radix_char{'.'};
13  constexpr auto e_char{'e'};
14  constexpr auto plus_char{'+'};
15  constexpr auto minus_char{'-'};
16  constexpr auto zero_char{'0'};
17 
18  constexpr auto isdigit(char c)
19  {
20  return c >= zero_char && c <= '9';
21  }
22 }
23 
24 #endif // CNL_IMPL_CHARCONV_CONSTANTS_H
std::isdigit
T isdigit(T... args)