std::ios_base(3cxx)
πΈ NAME πΈ
std::ios_base β the base of the I/O class hierarchy. (yes bestie, this is the std::ios_base(3cxx) page, we're doing the whole thing π
)
β¨ SYNOPSIS β¨
#include <ios>
Inherited by std::basic_ios< char, _Traits >, and std::basic_ios< _CharT, _Traits >.
π Classes π
class failureβ these are thrown to indicate problems with io. (rude of them, honestly, but okay.)
π¦ Public Types π¦
enum event { erase_event, imbue_event, copyfmt_event }β the set of events that may be passed to an event callback.typedef void(* event_callback) (event __e, ios_base &__b, int __i)β the type of an event callback function.typedef _Ios_Fmtflags fmtflagsβ this is a bitmask type.typedef _Ios_Iostate iostateβ this is a bitmask type.typedef _Ios_Openmode openmodeβ this is a bitmask type.typedef _Ios_Seekdir seekdirβ this is an enumerated type.
π Public Member Functions π
ios_base (const ios_base &)=deleteβ no copying, periodt. it's literally deleted.virtual ~ios_base ()β the destructor, doing destructor things.const locale & _M_getloc () constβ locale access.fmtflags flags () constβ access to format flags.fmtflags flags (fmtflags __fmtfl)β setting new format flags all at once.locale getloc () constβ locale access.locale imbue (const locale &__loc) throw ()β setting a new locale.long & iword (int __ix)β access to integer array.ios_base & operator= (const ios_base &)=deleteβ also deleted, no assignment for u either. π ββοΈstreamsize precision () constβ flags access.streamsize precision (streamsize __prec)β changing flags.void *& pword (int __ix)β access to void pointer array.void register_callback (event_callback __fn, int __index)β add the callback__fnwith parameter__index.fmtflags setf (fmtflags __fmtfl)β setting new format flags.fmtflags setf (fmtflags __fmtfl, fmtflags __mask)β setting new format flags (the two-arg version, she's got range).void unsetf (fmtflags __mask)β clearing format flags.streamsize width () constβ flags access.streamsize width (streamsize __wide)β changing flags.
π Static Public Member Functions π
static bool sync_with_stdio (bool __sync=true)β interaction with the standard C I/O objects.static int xalloc () throw ()β access to unique indices.
π Static Public Attributes π
static const openmode __noreplaceβ yeah, that's the name, don't come for me.static const fmtflags adjustfieldβ a mask ofleft|right|internal. useful for the 2-arg form ofsetf.static const openmode appβ seek to end before each write.static const openmode ateβ open and seek to end immediately after opening.static const iostate badbitβ indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error from a file).static const fmtflags basefieldβ a mask ofdec|oct|hex. useful for the 2-arg form ofsetf.static const seekdir begβ request a seek relative to the beginning of the stream.static const openmode binaryβ perform input and output in binary mode (as opposed to text mode). this is probably not what you think it is; seehttps://gcc.gnu.org/onlinedocs/libstdc++/manual/fstreams.html#std.io.filestreams.binary.static const fmtflags boolalphaβ insert/extractboolin alphabetic rather than numeric format.static const seekdir curβ request a seek relative to the current position within the sequence.static const fmtflags decβ converts integer input or generates integer output in decimal base.static const seekdir endβ request a seek relative to the current end of the sequence.static const iostate eofbitβ indicates that an input operation reached the end of an input sequence.static const iostate failbitβ indicates that an input operation failed to read the expected characters, or that an output operation failed to generate the desired characters.static const fmtflags fixedβ generate floating-point output in fixed-point notation.static const fmtflags floatfieldβ a mask ofscientific|fixed. useful for the 2-arg form ofsetf.static const iostate goodbitβ indicates all is well. (the good one, the icon β¨)static const fmtflags hexβ converts integer input or generates integer output in hexadecimal base.static const openmode inβ open for input. default forifstreamandfstream.static const fmtflags internalβ adds fill characters at a designated internal point in certain generated output, or identical torightif no such point is designated.static const fmtflags leftβ adds fill characters on the right (final positions) of certain generated output. (i.e., the thing you print is flush left.)static const fmtflags octβ converts integer input or generates integer output in octal base.static const openmode outβ open for output. default forofstreamandfstream.static const fmtflags rightβ adds fill characters on the left (initial positions) of certain generated output. (i.e., the thing you print is flush right.)static const fmtflags scientificβ generates floating-point output in scientific notation.static const fmtflags showbaseβ generates a prefix indicating the numeric base of generated integer output.static const fmtflags showpointβ generates a decimal-point character unconditionally in generated floating-point output.static const fmtflags showposβ generates a+sign in non-negative generated numeric output.static const fmtflags skipwsβ skips leading white space before certain input operations.static const openmode truncβ truncate an existing stream when opening. default forofstream.static const fmtflags unitbufβ flushes output after each output operation.static const fmtflags uppercaseβ replaces certain lowercase letters with their uppercase equivalents in generated output.
π Protected Types π
enum { _S_local_word_size }β it's an anonymous enum, mysterious queen.
π§ Protected Member Functions π§
void _M_call_callbacks (event __ev) throw ()void _M_dispose_callbacks (void) throw ()_Words & _M_grow_words (int __index, bool __iword)void _M_init () throw ()void _M_move (ios_base &) noexceptvoid _M_swap (ios_base &__rhs) noexcept
π Protected Attributes π
_Callback_list * _M_callbacksiostate _M_exceptionfmtflags _M_flagslocale _M_ios_locale_Words _M_local_word [_S_local_word_size]streamsize _M_precisioniostate _M_streambuf_statestreamsize _M_width_Words * _M_wordint _M_word_size_Words _M_word_zero
π Detailed Description π
okay so, the base of the I/O class hierarchy. say it with me bestie.
this class defines everything that can be defined about I/O that does not depend on the type of characters being input or output. most people will only ever see ios_base when they need to specify the full name of the various I/O flags (e.g., the openmodes). so like, you'll bump into her at a party but you won't really talk to her, yk? iykyk.
πΈ Member Typedef Documentation πΈ
β typedef void(* std::ios_base::event_callback) (event __e, ios_base &__b, int __i)
the type of an event callback function.
Parameters (the receipts):
__eβ one of the members of theeventenum.__bβ reference to theios_baseobject.__iβ the integer provided when the callback was registered.
event callbacks are user defined functions that get called during several ios_base and basic_ios functions β specifically imbue(), copyfmt(), and ~ios(). she's booked and busy.
β typedef _Ios_Fmtflags std::ios_base::fmtflags
this is a bitmask type. _Ios_Fmtflags is implementation-defined, but it is valid to perform bitwise operations on these values and expect the Right Thing to happen. defined objects of type fmtflags are:
boolalphadecfixedhexinternalleftoctrightscientificshowbaseshowpointshowposskipwsunitbufuppercaseadjustfieldbasefieldfloatfield
β typedef _Ios_Iostate std::ios_base::iostate
this is a bitmask type. _Ios_Iostate is implementation-defined, but it is valid to perform bitwise operations on these values and expect the Right Thing to happen. defined objects of type iostate are:
badbiteofbitfailbitgoodbit
β typedef _Ios_Openmode std::ios_base::openmode
this is a bitmask type. _Ios_Openmode is implementation-defined, but it is valid to perform bitwise operations on these values and expect the Right Thing to happen. defined objects of type openmode are:
appatebinaryinouttrunc
β typedef _Ios_Seekdir std::ios_base::seekdir
this is an enumerated type. _Ios_Seekdir is implementation-defined. defined values of type seekdir are:
begcur, equivalent toSEEK_CURin the C standard library.end, equivalent toSEEK_ENDin the C standard library.
π¦ Member Enumeration Documentation π¦
β enum std::ios_base::event
the set of events that may be passed to an event callback. erase_event is used during ~ios() and copyfmt(). imbue_event is used during imbue(). copyfmt_event is used during copyfmt(). three moods, three events, we love a consistent queen.
π Constructor & Destructor Documentation π
β virtual std::ios_base::~ios_base () [virtual]
invokes each callback with erase_event. destroys local storage.
β οΈ note: theios_baseobject for the standard streams never gets destroyed. as a result, any callbacks registered with the standard streams will not get invoked witherase_event(unlesscopyfmtis used). literally never, bestie. count your blessings.
okay that's the whole structure dump, but bestie we're only like a third of the way through β the member function deep-dives are next and they are so much. keep scrolling ππ«Ά
π Member Function Documentation π
okay bestie, this is the big one β every single member function, no skips, no "you get the idea" π grab a snack π and let's go.
β¨ _M_getloc() β locale access, but the reference version
const locale & std::ios_base::_M_getloc () const [inline]
Returns: a reference to the current locale.
It's literally like getloc above, except it hands you back a reference instead of generating a whole copy. lowkey efficient, we love to see it π
- Referenced by:
std::money_get< _CharT, _InIter >::do_get(),std::time_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::time_get< _CharT, _InIter >::do_get_date(),std::time_get< _CharT, _InIter >::do_get_monthname(),std::time_get< _CharT, _InIter >::do_get_time(),std::time_get< _CharT, _InIter >::do_get_weekday(),std::time_get< _CharT, _InIter >::do_get_year(),std::num_put< _CharT, _OutIter >::do_put(),std::time_put< _CharT, _OutIter >::do_put(),std::time_get< _CharT, _InIter >::get(), andstd::time_put< _CharT, _OutIter >::put().
π flags() β peeking at your format flags (const version)
fmtflags std::ios_base::flags () const [inline]
Returns: the format control flags for both input and output. yes bestie, both. one big flag pile π«Ά
- Referenced by:
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::basic_ostream< _CharT, _Traits >::sentry::~sentry(),std::basic_ios< _CharT, _Traits >::copyfmt(),std::num_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::num_put< _CharT, _OutIter >::do_put(),std::num_put< _CharT, _OutIter >::do_put(),std::normal_distribution< double >::operator()(),std::operator<<(),std::chrono::operator<<(),std::operator>>(),std::operator>>(),std::__detail::operator>>(),std::operator>>(),std::operator>>(),std::operator>>(),std::operator>>(), andstd::operator>>().
π₯ flags(fmtflags) β setting ALL the flags at once
fmtflags std::ios_base::flags (fmtflags __fmtfl) [inline]
Parameters:
__fmtflβ the new flags to set.
Returns: the previous format control flags.
Heads up: this function overwrites all the format flags with __fmtfl. like, all of them. it does not ask. it does not negotiate. periodt π
πΈ getloc() β locale access, the copy edition
locale std::ios_base::getloc () const [inline]
Returns: a copy of the current locale.
The way this works: if imbue(loc) has previously been called, then this function returns loc. Otherwise, it returns a copy of std::locale(), the global C++ locale. iykyk π§
- Referenced by:
std::basic_ios< _CharT, _Traits >::copyfmt(),std::money_put< _CharT, _OutIter >::do_put(),std::chrono::operator<<(),std::operator>>(),std::operator>>(), andstd::ws().
π¦ imbue() β setting a brand new locale
locale std::ios_base::imbue (const locale & __loc)
Parameters:
__locβ the new locale.
Returns: the previous locale.
Sets the new locale for this stream, and then β plot twist β invokes each callback with imbue_event. yes, the callbacks get notified. they're in the group chat too π
- Referenced by:
std::basic_ios< _CharT, _Traits >::imbue().
π iword() β the integer stash array
long & std::ios_base::iword (int __ix) [inline]
Parameters:
__ixβ index into the array.
Returns: a reference to an integer associated with the index.
The iword function provides access to an array of integers that can be used for any purpose. The array grows as required to hold the supplied index, and all integers in the array are initialized to 0. slay, free storage β¨
okay but two massive caveats bestie, don't skip these: - The implementation reserves several indices. You should use xalloc to obtain an index that is safe to use. - Since the array can grow dynamically, it is not safe to hold onto the reference. π it can get yanked out from under you.
β precision() β flags access, precision edition
streamsize std::ios_base::precision () const [inline]
Returns: the precision to generate on certain output operations.
Be careful if you try to give a definition of precision here; see DR 189. fr fr, that's a known thing, not me being dramatic.
- Referenced by:
std::basic_ios< _CharT, _Traits >::copyfmt(), andstd::chrono::operator<<().
π
precision(streamsize) β changing the precision
streamsize std::ios_base::precision (streamsize __prec) [inline]
Parameters:
__precβ the new precision value.
Returns: the previous value of precision().
π pword() β the void-pointer stash array
void *& std::ios_base::pword (int __ix) [inline]
Parameters:
__ixβ index into the array.
Returns: a reference to a void* associated with the index.
The pword function provides access to an array of pointers that can be used for any purpose. The array grows as required to hold the supplied index, and all pointers in the array are initialized to 0. iconic, honestly π«Ά
same two warnings asiword, no cap: - The implementation reserves several indices. You should usexallocto obtain an index that is safe to use. - Since the array can grow dynamically, it is not safe to hold onto the reference. π
π register_callback() β adding a callback
void std::ios_base::register_callback (event_callback __fn, int __index)
Add the callback __fn with parameter __index.
Parameters:
__fnβ the function to add.__indexβ the integer to pass to the function when invoked.
Registers a function as an event callback with an integer parameter to be passed to the function when invoked. Multiple copies of the function are allowed. And if there are multiple callbacks, they are invoked in the order they were registered. first come, first called, literally π
π setf(fmtflags) β adding more flags
fmtflags std::ios_base::setf (fmtflags __fmtfl) [inline]
Parameters:
__fmtflβ additional flags to set.
Returns: the previous format control flags.
This function sets additional flags in format control. Flags that were previously set remain set. nobody gets unset here, we're only adding π
- Referenced by:
std::__detail::operator>>().
π§ setf(fmtflags, fmtflags) β the masked version
fmtflags std::ios_base::setf (fmtflags __fmtfl, fmtflags __mask) [inline]
Parameters:
__fmtflβ additional flags to set.__maskβ the flags mask for__fmtfl.
Returns: the previous format control flags.
The way this one works: it clears mask in the format flags, then sets fmtfl & mask. An example mask is ios_base::adjustfield β¨
π sync_with_stdio() β C I/O meets C++ I/O
static bool std::ios_base::sync_with_stdio (bool __sync = true) [static]
Interaction with the standard C I/O objects.
Parameters:
__syncβ whether to synchronize or not.
Returns: true if the standard streams were previously synchronized.
read this carefully bestie: the synchronization referred to is only that between the standard C facilities (e.g., stdout) and the standard C++ objects (e.g., cout). User-declared streams are unaffected. π«Ά
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/fstreams.html#std.io.filestreams.binary.
π₯ unsetf() β clearing format flags
void std::ios_base::unsetf (fmtflags __mask) [inline]
Parameters:
__maskβ the flags to unset.
This function clears __mask in the format flags. simple, clean, no notes π
πΈ width() β flags access, width edition
streamsize std::ios_base::width () const [inline]
Returns: the minimum field width to generate on output operations.
Minimum field width refers to the number of characters. yes, characters, not vibes π
- Referenced by:
std::basic_ios< _CharT, _Traits >::copyfmt(),std::num_put< _CharT, _OutIter >::do_put(),std::operator>>(), andstd::operator>>().
π width(streamsize) β changing the width
streamsize std::ios_base::width (streamsize __wide) [inline]
Parameters:
__wideβ the new width value.
Returns: the previous value of width().
β xalloc() β the index dispenser
static int std::ios_base::xalloc () [static]
Returns: an integer different from all previous calls.
This function returns a unique integer every time it is called. It can be used for any purpose, but is primarily intended to be a unique index for the iword and pword functions. The expectation is that an application calls xalloc in order to obtain an index in the iword and pword arrays that can be used without fear of conflict π«Ά
The implementation maintains a static variable that is incremented and returned on each invocation. xalloc is guaranteed to return an index that is safe to use in the iword and pword arrays. we stan a reliable icon π
π¦ Member Data Documentation π¦
now for all the static constants, aka the lore drop π
π adjustfield
const fmtflags std::ios_base::adjustfield [static]
A mask of left|right|internal. Useful for the 2-arg form of setf. iykyk π
- Referenced by:
std::num_put< _CharT, _OutIter >::do_put(),std::internal(),std::left(), andstd::right().
β¨ app
const openmode std::ios_base::app [static]
Seek to end before each write. every single time, no skipping π«Ά
- Referenced by:
std::basic_filebuf< _CharT, _Traits >::_M_set_buffer(),std::basic_filebuf< _CharT, _Traits >::overflow(), andstd::basic_filebuf< _CharT, _Traits >::xsputn().
πΈ ate
const openmode std::ios_base::ate [static]
Open and seek to end immediately after opening. like, the moment it's open, boom, end of file. iconic entrance π
- Referenced by:
std::basic_filebuf< _CharT, _Traits >::open().
π badbit
const iostate std::ios_base::badbit [static]
Indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error from a file). this one's the serious one, bestie π
- Referenced by:
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::basic_ostream< _CharT, _Traits >::sentry::~sentry(),std::basic_ios< _CharT, _Traits >::bad(),std::basic_ios< _CharT, _Traits >::fail(),std::basic_ostream< _CharT, _Traits >::flush(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< char >::get(),std::basic_istream< _CharT, _Traits >::get(),std::basic_ostream< _CharT, _Traits >::operator<<(),std::operator>>(),std::basic_istream< _CharT, _Traits >::operator>>(),std::basic_ostream< _CharT, _Traits >::put(),std::basic_istream< _CharT, _Traits >::putback(),std::basic_istream< _CharT, _Traits >::read(),std::basic_istream< _CharT, _Traits >::readsome(),std::basic_istream< char >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::sync(),std::basic_istream< char >::tellg(),std::basic_istream< _CharT, _Traits >::tellg(), andstd::ws().
π basefield
const fmtflags std::ios_base::basefield [static]
A mask of dec|oct|hex. Useful for the 2-arg form of setf. the number-base trio π
- Referenced by:
std::dec(),std::num_get< _CharT, _InIter >::do_get(),std::num_put< _CharT, _OutIter >::do_put(),std::hex(), andstd::oct().
π§ beg
const seekdir std::ios_base::beg [static]
Request a seek relative to the beginning of the stream. start of the line, literally β¨
- Referenced by:
std::basic_filebuf< _CharT, _Traits >::seekpos().
π¦ binary
const openmode std::ios_base::binary [static]
Perform input and output in binary mode (as opposed to text mode).
This is probably not what you think it is; see https://gcc.gnu.org/onlinedocs/libstdc++/manual/fstreams.html#std.io.filestreams.binary. bestie please read the link before you fight me on this π
- Referenced by:
std::basic_filebuf< _CharT, _Traits >::showmanyc().
β boolalpha
const fmtflags std::ios_base::boolalpha [static]
Insert/extract bool in alphabetic rather than numeric format. so true/false instead of 1/0, we love a glow-up π
- Referenced by:
std::boolalpha(),std::num_get< _CharT, _InIter >::do_get(),std::num_put< _CharT, _OutIter >::do_put(), andstd::noboolalpha().
π cur
const seekdir std::ios_base::cur [static]
Request a seek relative to the current position within the sequence. you are here, we stay here π«Ά
- Referenced by:
std::basic_filebuf< _CharT, _Traits >::imbue(),std::basic_filebuf< _CharT, _Traits >::overflow(),std::basic_filebuf< _CharT, _Traits >::pbackfail(),std::basic_filebuf< _CharT, _Traits >::seekoff(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(),std::basic_istream< _CharT, _Traits >::tellg(), andstd::basic_ostream< _CharT, _Traits >::tellp().
π₯ dec
const fmtflags std::ios_base::dec [static]
Converts integer input or generates integer output in decimal base. base 10 supremacy, no cap π
const seekdir std::ios_base::end[static]β want to seek relative to wherever the sequence currently ends? this is the vibe check for that. π- Referenced by
std::basic_filebuf< _CharT, _Traits >::open(), andstd::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff().
- Referenced by
const iostate std::ios_base::eofbit[static]β bestie, this one means an input operation hit the end of an input sequence. you ran out of stream. that's it, that's the whole mood. π- Referenced by
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::time_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::time_get< _CharT, _InIter >::do_get_date(),std::time_get< _CharT, _InIter >::do_get_monthname(),std::time_get< _CharT, _InIter >::do_get_time(),std::time_get< _CharT, _InIter >::do_get_weekday(),std::time_get< _CharT, _InIter >::do_get_year(),std::basic_ios< _CharT, _Traits >::eof(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< char >::get(),std::time_get< _CharT, _InIter >::get(),std::basic_istream< _CharT, _Traits >::ignore(),std::basic_istream< _CharT, _Traits >::operator>>(),std::operator>>(),std::basic_istream< _CharT, _Traits >::putback(),std::basic_istream< _CharT, _Traits >::read(),std::basic_istream< _CharT, _Traits >::readsome(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< char >::sync(),std::basic_istream< _CharT, _Traits >::unget(), andstd::ws().
- Referenced by
const iostate std::ios_base::failbit[static]β the β¨disappointmentβ¨ flag. it means an input operation failed to read the characters it expected, or an output operation failed to generate the characters you wanted. either way, not slay. π- Referenced by
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::basic_ostream< _CharT, _Traits >::sentry::sentry(),std::basic_ifstream< _CharT, _Traits >::close(),std::basic_ofstream< _CharT, _Traits >::close(),std::basic_fstream< _CharT, _Traits >::close(),std::num_get< _CharT, _InIter >::do_get(),std::time_get< _CharT, _InIter >::do_get_monthname(),std::time_get< _CharT, _InIter >::do_get_weekday(),std::time_get< _CharT, _InIter >::do_get_year(),std::basic_ios< _CharT, _Traits >::fail(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< char >::get(),std::time_get< _CharT, _InIter >::get(),std::basic_ifstream< _CharT, _Traits >::open(),std::basic_fstream< _CharT, _Traits >::open(),std::basic_ofstream< _CharT, _Traits >::open(),std::basic_ifstream< _CharT, _Traits >::open(),std::basic_fstream< _CharT, _Traits >::open(),std::basic_ofstream< _CharT, _Traits >::open(),std::operator<<(),std::basic_istream< _CharT, _Traits >::operator>>(),std::operator>>(),std::basic_istream< _CharT, _Traits >::operator>>(),std::basic_istream< _CharT, _Traits >::read(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_ostream< _CharT, _Traits >::seekp(), andstd::basic_ostream< _CharT, _Traits >::seekp().
- Referenced by
const fmtflags std::ios_base::fixed[static]β makes floating-point output come out in good ol' fixed-point notation. no fancy exponent business. π- Referenced by
std::fixed(), andstd::hexfloat().
- Referenced by
const fmtflags std::ios_base::floatfield[static]β it's a mask ofscientific|fixed. lowkey the MVP when you're using the 2-arg form ofsetf. π- Referenced by
std::defaultfloat(),std::fixed(),std::hexfloat(), andstd::scientific().
- Referenced by
const iostate std::ios_base::goodbit[static]β "indicates all is well." that's the whole entry. everything is fine, we're thriving, no notes. πΈ- Referenced by
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::time_get< _CharT, _InIter >::do_get(),std::num_get< _CharT, _InIter >::do_get(),std::time_get< _CharT, _InIter >::do_get_monthname(),std::time_get< _CharT, _InIter >::do_get_weekday(),std::time_get< _CharT, _InIter >::do_get_year(),std::basic_ostream< _CharT, _Traits >::flush(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< _CharT, _Traits >::get(),std::basic_istream< char >::get(),std::basic_istream< _CharT, _Traits >::get(),std::time_get< _CharT, _InIter >::get(),std::basic_istream< _CharT, _Traits >::ignore(),std::basic_istream< _CharT, _Traits >::ignore(),std::basic_ostream< _CharT, _Traits >::operator<<(),std::basic_istream< _CharT, _Traits >::operator>>(),std::operator>>(),std::basic_istream< _CharT, _Traits >::operator>>(),std::basic_ostream< _CharT, _Traits >::put(),std::basic_istream< _CharT, _Traits >::putback(),std::basic_istream< _CharT, _Traits >::read(),std::basic_istream< _CharT, _Traits >::readsome(),std::basic_istream< char >::readsome(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::sync(),std::basic_istream< _CharT, _Traits >::unget(), andstd::ws().
- Referenced by
const fmtflags std::ios_base::hex[static]β converts integer input or generates integer output in hexadecimal base. base 16 core, honestly. π₯- Referenced by
std::num_get< _CharT, _InIter >::do_get(),std::num_put< _CharT, _OutIter >::do_put(), andstd::hex().
- Referenced by
const openmode std::ios_base::in[static]β open for input, bestie. it's the default forifstreamandfstream. π¦- Referenced by
std::basic_filebuf< _CharT, _Traits >::_M_set_buffer(),std::basic_ifstream< _CharT, _Traits >::open(),std::basic_ifstream< _CharT, _Traits >::open(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(),std::basic_filebuf< _CharT, _Traits >::pbackfail(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_istream< _CharT, _Traits >::seekg(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(),std::basic_filebuf< _CharT, _Traits >::showmanyc(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::showmanyc(),std::basic_istream< _CharT, _Traits >::tellg(),std::basic_filebuf< _CharT, _Traits >::underflow(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::underflow(), andstd::basic_filebuf< _CharT, _Traits >::xsgetn().
- Referenced by
const fmtflags std::ios_base::internal[static]β sticks fill characters at a designated internal point in certain generated output. orrrr it behaves identical torightif no such point is designated. not me calling that a glow-up with a backup plan. π- Referenced by
std::internal().
- Referenced by
const fmtflags std::ios_base::left[static]β adds fill characters on the right (the final positions) of certain generated output. i.e., the thing you print is flush left. icon behavior. π- Referenced by
std::num_put< _CharT, _OutIter >::do_put(), andstd::left().
- Referenced by
const fmtflags std::ios_base::oct[static]β converts integer input or generates integer output in octal base. base 8, underrated fr fr. π- Referenced by
std::oct().
- Referenced by
const openmode std::ios_base::out[static]β open for output. default forofstreamandfstream. say it with me: output mode main character energy. π- Referenced by
std::basic_filebuf< _CharT, _Traits >::_M_set_buffer(),std::basic_ofstream< _CharT, _Traits >::open(),std::basic_ofstream< _CharT, _Traits >::open(),std::basic_filebuf< _CharT, _Traits >::overflow(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::pbackfail(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(),std::basic_ostream< _CharT, _Traits >::seekp(),std::basic_ostream< _CharT, _Traits >::seekp(),std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(),std::basic_ostream< _CharT, _Traits >::tellp(), andstd::basic_filebuf< _CharT, _Traits >::xsputn().
- Referenced by
const fmtflags std::ios_base::right[static]β adds fill characters on the left (the initial positions) of certain generated output. i.e., the thing you print is flush right. the mirror twin ofleft, and yes she ate. β¨- Referenced by
std::right().
- Referenced by
const fmtflags std::ios_base::scientific[static]β generates floating-point output in scientific notation. big numbers, tiny notation, very demure. π§- Referenced by
std::hexfloat(), andstd::scientific().
- Referenced by
const fmtflags std::ios_base::showbase[static]β generates a prefix that shows off the numeric base of your generated integer output. like a little name tag for your number. π- Referenced by
std::num_put< _CharT, _OutIter >::do_put(),std::noshowbase(), andstd::showbase().
- Referenced by
const fmtflags std::ios_base::showpoint[static]β generates a decimal-point character unconditionally in generated floating-point output. no conditions, no maybes, she's showing up. periodt. π- Referenced by
std::noshowpoint(), andstd::showpoint().
- Referenced by
const fmtflags std::ios_base::showpos[static]β generates a+sign in non-negative generated numeric output. positivity only, bestie. π- Referenced by
std::noshowpos(), andstd::showpos().
- Referenced by
const fmtflags std::ios_base::skipws[static]β skips leading white space before certain input operations. it's giving "ignore the noise before the real content." πΈ- Referenced by
std::basic_istream< _CharT, _Traits >::sentry::sentry(),std::noskipws(),std::__detail::operator>>(), andstd::skipws().
- Referenced by
const openmode std::ios_base::trunc[static]β truncate an existing stream when opening. default forofstream. β οΈ note that this one does wipe what was there, so don't come for me when your file is gone. πconst fmtflags std::ios_base::unitbuf[static]β flushes output after each output operation. hyper-vigilant bestie who sends every message the second she types it. π₯- Referenced by
std::basic_ostream< _CharT, _Traits >::sentry::~sentry(),std::nounitbuf(), andstd::unitbuf().
- Referenced by
const fmtflags std::ios_base::uppercase[static]β replaces certain lowercase letters with their uppercase equivalents in generated output. SHE'S YELLING (respectfully). π- Referenced by
std::num_put< _CharT, _OutIter >::do_put(),std::nouppercase(), andstd::uppercase().
- Referenced by
β¨ Author β¨
Generated automatically by Doxygen for libstdc++ from the source code. β so no, a human girlie did not hand-write this, the robots did, and honestly they ate. π«Ά
okay that's the whole page, bestie, you made it to the end of part 3 π credit where it's due: this little masterpiece is from libstdc++, it's the std::ios_base(3cxx) page, and it was auto-generated straight from the source code β go drink some water and then go read your stream's state flags, ily. πππ¦
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms