std::ios_base::unsetf(3)
β¨ std::ios_base::unsetf β¨
okay bestie, welcome to the C++ Standard Library corner of the internet π
this little page is all about std::ios_base::unsetf, which lives in the C++ Standard Libary (yes, that's how the original spells it, we don't gatekeep typos here π«Ά). Grab a strawberry π and let's get into it.
πΈ SYNOPSIS πΈ
void unsetf( fmtflags flags );
Unsets the formatting flags identified by flags. That's it. That's the whole vibe. You hand it some flags, it turns them off β¨ (as opposed to setf, which turns them on β more on that cutie down in SEE ALSO π).
π PARAMETERS π
- flags β the formatting flags you want to unset. It can be a combination of the formatting flag constants. Like, mix and match, go off π
π¦ FORMATTING FLAGS π¦
here's the full roster, no cap, every single one π
decβ use decimal base for integer I/O: seestd::decoctβ use octal base for integer I/O: seestd::octhexβ use hexadecimal base for integer I/O: seestd::hexbasefieldβdec|oct|hex. Useful for masking operationsleftβ left adjustment (adds fill characters to the right): seestd::leftrightβ right adjustment (adds fill characters to the left): seestd::rightinternalβ internal adjustment (adds fill characters to the internal designated point): seestd::internaladjustfieldβleft|right|internal. Useful for masking operationsscientificβ generate floating point types using scientific notation, or hex notation if combined withfixed: seestd::scientificfixedβ generate floating point types using fixed notation, or hex notation if combined withscientific: seestd::fixedfloatfieldβscientific|fixed. Useful for masking operationsboolalphaβ insert and extractbooltype in alphanumeric format: seestd::boolalphashowbaseβ generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O: seestd::showbaseshowpointβ generate a decimal-point character unconditionally for floating-point number output: seestd::showpointshowposβ generate a+character for non-negative numeric output: seestd::showposskipwsβ skip leading whitespace before certain input operations: seestd::skipwsunitbufβ flush the output after each output operation: seestd::unitbufuppercaseβ replace certain lowercase letters with their uppercase equivalents in certain output operations: seestd::uppercase
β RETURN VALUE β
(none) β she gives you nothing back, and honestly? that's her main character energy π
π EXAMPLE π
This section is incomplete Reason: no example
literally not one example in sight π the page said "figure it out bestie". iykyk.
π SEE ALSO π
flagsβ manages format flags (public member function)setfβ sets specific format flag (public member function)
π CATEGORY π
- Todo no example
okay that's the whole page, mwah π source is http://cppreference.com, version 2024.06.10, and the page itself is dated std::ios_base::unsetf(3) β go unset some flags, slay, and remember: masking operations are your friend π
β¨π¦
π¦ 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