public member function
<ios> <iostream>

std::basic_ios::narrow

char narrow (char_type wc, char dfault) const;
Narrow character
Returns the transformation of character wc (generally, of a wide character type) to its equivalent of type char.

This function returns the result of calling the ctype::narrow facet of the locale object currently imbued in the stream.

Parameters

wc
Wide character to be narrowed.
Member type char_type is the type of characters used by the stream (i.e., its first class template parameter, charT).
dfault
Character returned if wc has no standard equivalent.

Return Value

The char equivalent of c.

Data races

Accesses the stream object.
Concurrent access to the same stream object may cause data races.

Exception safety

Strong guarantee: if an exception is thrown, there are no changes in the stream.

See also