ios::narrow
char narrow ( char c, char default ) const;
ios
  cplusplus.com  

Narrow character.
  Converts localized parameter c to its standard char equivalent.
  If basic template basic_ios is used with an specialization other than char the function also performs the appropiate conversion from the char_type used to the char type.
  If parameter c has no standard char equivalent the function returns parameter default.

Parameters.

c
character to be narrowed.
default
character to be returned if c has no standard equivalent.

Return Value.
  The char type equivalent for c if any, otherwise returns default.

Basic template member declaration ( basic_ios<charT,traits> ):
typedef charT char_type;
char narrow ( char_type c, char default ) const;

See also.
  widen
  ios class


© The C++ Resources Network, 2001