Namespaces
Variants
Views
Actions

std::regex_traits<CharT>::value

From cppreference.com
< cpp‎ | regex‎ | regex traits
Revision as of 21:33, 17 July 2012 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
int value( CharT ch, int radix ) const;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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