A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/string/char_traits/to_int_type/ below:

public static member function

<string>

std::char_traits::to_int_type
static int_type to_int_type (const char_type& c);
static constexpr int_type to_int_type (char_type c) noexcept;

To int type

Returns the int_type equivalent of c.

All character traits types shall implement the function so that the returned value can be transformed back to its char_type value using char_traits::to_char_type.

In the standard specializations of char_traits, this function performs the corresponding built-in integral promotion.



Parameters
c
Character value.
Member type char_type is the character type (i.e., the class template parameter in char_traits).

Return Value The int_type equivalent of c.

Member type int_type is an integral type that can represent eof() or any valid character value.



Complexity Constant.

Exception safetyNo-throw guarantee: this member function never throws exceptions.

See also
char_traits::to_char_type
To char type (public static member function)
char_traits::eq_int_type
Compare int_type values (public static member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4