std::upperc...:nouppercase(3)
β¨ NAME β¨
std::uppercase, std::nouppercase β okay so this page is std::upperc...:nouppercase(3) from the C++ Standard Libary manual, and the NAME is literally std::uppercase,std::nouppercase β std::uppercase,std::nouppercase. π
πΈ Synopsis πΈ
These two live in header <ios>, and the signatures are giving exactly this:
Defined in header <ios>
std::ios_base& uppercase( std::ios_base& str ); (1)
std::ios_base& nouppercase( std::ios_base& str ); (2)
π Parameters π
strβ reference to I/O stream. π«Ά
π Return value π
str (reference to the stream after manipulation). It's giving the same stream back, okay? π
π§ Example π§
Okay bestie, run this code β it's iconic:
// Run this code
#include <iostream>
int main()
{
std::cout << std::hex << std::showbase
<< "0x2a with uppercase: " << std::uppercase << 0x2a <<
'\n'
<< "0x2a with nouppercase: " << std::nouppercase << 0x2a
<< '\n'
<< "1e-10 with uppercase: " << std::uppercase << 1e-10 <<
'\n'
<< "1e-10 with nouppercase: " << std::nouppercase <<
1e-10 << '\n';
}
π Output π
And the output is literally:
0x2a with uppercase: 0X2A
0x2a with nouppercase: 0x2a
1e-10 with uppercase: 1E-10
1e-10 with nouppercase: 1e-10
π₯ See also π₯
resetiosflagsβ clears the specifiedios_baseflags (function). π§setiosflagsβ sets the specifiedios_baseflags (function). π₯
π source/version check: this came fromhttp://cppreference.com, dated2024.06.10. That's the footer, bestie β we ate, no cap. π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms