Namespaces
Variants
Views
Actions

std::char_traits::to_int_type

From cppreference.com
< cpp‎ | string‎ | char traits
Revision as of 23:37, 24 February 2013 by 2hertz (Talk | contribs)

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

<td >
static char_type to_int_type( char_type c );
</td>

<td class="t-dcl-nopad"> </td> <td > (until C++11) </td> </tr> <tr class="t-dcl ">

<td >
static constexpr char_type to_int_type( char_type c ) noexcept;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Converts a value of char_type to int_type.

Contents

Parameters

c - value to convert

Return value

A value equivalent to c.

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant.