Namespaces
Variants
Views
Actions

std::char_traits::to_int_type

From cppreference.com
< cpp‎ | string‎ | char traits
Revision as of 17:45, 26 August 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
static int_type to_int_type( char_type c );
(until C++11)
static constexpr int_type to_int_type( char_type c );
(since C++11)

Converts a value of char_type to int_type.

Contents

[edit] Parameters

c - value to convert

[edit] Return value

A value equivalent to c.

[edit] Exceptions

(none) (until C++11)
noexcept specification:  
noexcept
  
(since C++11)

[edit] Complexity

Constant.