std::ios_base::unsetf(3)

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

✨ 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: see std::dec
  • oct β€” use octal base for integer I/O: see std::oct
  • hex β€” use hexadecimal base for integer I/O: see std::hex
  • basefield β€” dec | oct | hex. Useful for masking operations
  • left β€” left adjustment (adds fill characters to the right): see std::left
  • right β€” right adjustment (adds fill characters to the left): see std::right
  • internal β€” internal adjustment (adds fill characters to the internal designated point): see std::internal
  • adjustfield β€” left | right | internal. Useful for masking operations
  • scientific β€” generate floating point types using scientific notation, or hex notation if combined with fixed: see std::scientific
  • fixed β€” generate floating point types using fixed notation, or hex notation if combined with scientific: see std::fixed
  • floatfield β€” scientific | fixed. Useful for masking operations
  • boolalpha β€” insert and extract bool type in alphanumeric format: see std::boolalpha
  • showbase β€” generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O: see std::showbase
  • showpoint β€” generate a decimal-point character unconditionally for floating-point number output: see std::showpoint
  • showpos β€” generate a + character for non-negative numeric output: see std::showpos
  • skipws β€” skip leading whitespace before certain input operations: see std::skipws
  • unitbuf β€” flush the output after each output operation: see std::unitbuf
  • uppercase β€” replace certain lowercase letters with their uppercase equivalents in certain output operations: see std::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