From Cppreference
|
|
|
|
|
template< class charT > bool isdigit( charT ch, const locale& loc );
|
|
|
|
|
Checks if the given character is classified as a digit by the given locale's std::ctype facet.
[edit] Parameters
ch
|
-
|
character
|
loc
|
-
|
locale
|
[edit] Return value
Returns true if the character is classified as a digit, false otherwise.
[edit] Equivalent function
template< class charT >
bool isdigit( charT ch, const std::locale& loc ) {
return std::use_facet<std::ctype<charT>>(loc).is(std::ctype_base::digit, ch);
}
|
[edit] Example
[edit] See also
|
|
checks if a character is a digit (function)
|
|
|
checks if a wide character is a digit (function)
|