W3cubDocs

/C++

std::char_traits::to_int_type

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.

Parameters

c - value to convert

Return value

A value equivalent to c.

Exceptions

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

Complexity

Constant.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/string/char_traits/to_int_type