Namespaces
Variants
Views
Actions

std::regex_traits::value

From cppreference.com
< cpp‎ | regex‎ | regex traits
Revision as of 14:23, 5 June 2013 by P12 (Talk | contribs)

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.

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