std::basic_ios::widen(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… NAME

okay so bestie, this page is for std::basic_ios::widen β€” manual name std::basic_ios::widen(3) β€” from the C++ Standard Library, and we’re gonna make it make sense. 🫢

✨ Synopsis

char_type widen( char c ) const;

So what’s the tea? It converts a character c to its equivalent in the current locale. The result is converted from char to the character type used within the stream if needed.

It effectively calls std::use_facet< std::ctype<char_type> >(getloc()).widen(c). slay. πŸ’…

🌸 Parameters

  • c β€” character to convert

πŸŽ€ Return value

Character converted to char_type. periodt. ✨

πŸ¦‹ See also

  • narrow β€” narrows characters (public member function)
  • do_widen β€” converts a character or characters from char to CharT [virtual] (virtual protected member function of std::ctype<CharT>)
  • btowc β€” widens a single-byte narrow character to wide character, if possible (function)

mwah πŸ’‹ this lil page was brought to you by cppreference.com, dated 2024.06.10 β€” std::basic_ios::widen(3), and that’s iconic. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from