std::regex_traits<CharT>::value (3) - Linux Manuals
std::regex_traits<CharT>::value: std::regex_traits<CharT>::value
NAME
std::regex_traits<CharT>::value - std::regex_traits<CharT>::value
Synopsis
int value( CharT ch, int radix ) const; (since C++11)
Determines the value represented by the digit ch in the numeric base radix, given the currently imbued locale. This function is called by std::regex when processing Quantifiers such as {1} or {2,5}, Backreferences such as \1, and hexadecimal and Unicode character escapes.
Parameters
ch - the character that may represent a digit
radix - either 8, 10, or 16
Return value
The numeric value if ch indeed represents a digit in the currently imbued locale that is valid for the numeric base radix, or -1 on error.
Example
// Run this code