Namespaces
Variants
Views
Actions

std::char_traits::to_char_type

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

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

<tr class="t-dcl ">

<td >
static char_type to_char_type( int_type c );
</td>

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

<tr class="t-dcl ">

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

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

Converts a value of int_type to char_type. If there are no equivalent value, the results are unspecified.

Contents

Parameters

c - value to convert

Return value

A value equivalent to c.

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant.