| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Member functions | ||||
| State functions | ||||
| Formatting | ||||
| Miscellaneous | ||||
basic_ios::narrow | ||||
| Protected member functions | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) |
char narrow( char_type c,char dfault)const; | ||
Converts a current locale-specific characterc to its standard equivalent. The result is converted fromchar_type tochar if needed. If no conversion can be performed, the function returnsdfault.
Effectively callsstd::use_facet<std::ctype<char_type>>(getloc()).narrow(c, dfault);.
| c | - | character to convert |
| dfault | - | character to return if the conversion was unsuccessful |
Character converted to its standard equivalent and then tochar.dfault is returned if the conversion fails.
| widens characters (public member function)[edit] | |
invokesdo_narrow(public member function of std::ctype<CharT>)[edit] | |
| narrows a wide character to a single-byte narrow character, if possible (function)[edit] |