SI  2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
Static Public Attributes | List of all members
SI::detail::parsing::Digit_impl< _base, _str_digit > Struct Template Reference

#include <number_parser.h>

Inheritance diagram for SI::detail::parsing::Digit_impl< _base, _str_digit >:
Inheritance graph
[legend]

Static Public Attributes

static constexpr bool is_valid_digit = _str_digit == '\'' ? false : true
 
static constexpr std::intmax_t value
 

Detailed Description

template<std::intmax_t _base, char _str_digit>
struct SI::detail::parsing::Digit_impl< _base, _str_digit >

struct converting a char digit into an int allowed digits are [0-9][a-fA-F][']

Member Data Documentation

◆ is_valid_digit

template<std::intmax_t _base, char _str_digit>
constexpr bool SI::detail::parsing::Digit_impl< _base, _str_digit >::is_valid_digit = _str_digit == '\'' ? false : true
staticconstexpr

◆ value

template<std::intmax_t _base, char _str_digit>
constexpr std::intmax_t SI::detail::parsing::Digit_impl< _base, _str_digit >::value
staticconstexpr
Initial value:
=
(_str_digit >= '0' && _str_digit <= '9') ? _str_digit - '0'
: (_str_digit >= 'a' && _str_digit <= 'f') ? 10 + (_str_digit - 'a')
: (_str_digit >= 'A' && _str_digit <= 'F')
? 10 + (_str_digit - 'A')
: std::numeric_limits<std::intmax_t>::quiet_NaN()

The documentation for this struct was generated from the following file: