STD::BASIC_IOSTREAM(3)
โจ NAME โจ
std::basic_iostream< _CharT, _Traits > โ Template class basic_iostream.
This is the section 3 page from the Library Functions Manual. Okay bestie, this is the whole vibe of the class, and we're keeping every single detail, periodt. ๐
๐ SYNOPSIS ๐
#include <istream>
Inherits std::basic_istream< _CharT, _Traits >, and std::basic_ostream< _CharT, _Traits >.
Inherited by std::basic_fstream< char >, std::basic_fstream< wchar_t >, std::basic_stringstream< char >, std::basic_stringstream< wchar_t >, std::basic_fstream< _CharT, _Traits >, and std::basic_stringstream< _CharT, _Traits, _Alloc >.
๐ Public Types ๐
typedef ctype< _CharT > __ctype_typetypedef ctype< _CharT > __ctype_typeโ listed twice, exactly as the page says ๐typedef basic_ios< _CharT, _Traits > __ios_typetypedef basic_ios< _CharT, _Traits > __ios_typeโ again, duplicate, no captypedef basic_istream< _CharT, _Traits > __istream_typetypedef num_get< _CharT, istreambuf_iterator< _CharT, _Traits > > __num_get_typetypedef num_put< _CharT, ostreambuf_iterator< _CharT, _Traits > > __num_put_typetypedef basic_ostream< _CharT, _Traits > __ostream_typetypedef basic_streambuf< _CharT, _Traits > __streambuf_typetypedef basic_streambuf< _CharT, _Traits > __streambuf_typeโ yes, twice again, iconic behaviortypedef _CharT char_typeenum 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 _Traits::int_type int_typetypedef _Ios_Iostate iostateโ This is a bitmask type.typedef _Traits::off_type off_typetypedef _Ios_Openmode openmodeโ This is a bitmask type.typedef _Traits::pos_type pos_typetypedef _Ios_Seekdir seekdirโ This is an enumerated type.typedef _Traits traits_type
๐ Public Member Functions ๐
basic_iostream (basic_streambuf< _CharT, _Traits > *__sb)โ Constructor does nothing.virtual ~basic_iostream ()โ Destructor does nothing.template<typename _ValueT> basic_istream< _CharT, _Traits > & _M_extract (_ValueT &__v)โ no description given, just the signature โจconst locale & _M_getloc () constโ Locale access.template<typename _ValueT> basic_ostream< _CharT, _Traits > & _M_insert (_ValueT __v)โ no description given, just the signature โจvoid _M_setstate (iostate __state)โ no description given, just the signature โจbool bad () constโ Fast error checking.void clear (iostate __state=goodbit)โ [Re]sets the error state.basic_ios & copyfmt (const basic_ios &__rhs)โ Copies fields of__rhsinto this.bool eof () constโ Fast error checking.iostate exceptions () constโ Throwing exceptions on errors.void exceptions (iostate __except)โ Throwing exceptions on errors.bool fail () constโ Fast error checking.char_type fill () constโ Retrieves the empty character.char_type fill (char_type __ch)โ Sets a new empty character.fmtflags flags () constโ Access to format flags.fmtflags flags (fmtflags __fmtfl)โ Setting new format flags all at once.__ostream_type & flush ()โ Synchronizing the stream buffer.streamsize gcount () constโ Character counting.basic_istream< wchar_t > & getline (char_type *__s, streamsize __n, char_type __delim)basic_istream< char > & getline (char_type *__s, streamsize __n, char_type __delim)
Both of those getline lines are Explicit specialization declarations, defined in src/istream.cc.
locale getloc () constโ Locale access.bool good () constโ Fast error checking.basic_istream< wchar_t > & ignore (streamsize __n)basic_istream< char > & ignore (streamsize __n)basic_istream< wchar_t > & ignore (streamsize __n, int_type __delim)basic_istream< char > & ignore (streamsize __n, int_type __delim)locale imbue (const locale &__loc)โ Moves to a new locale.long & iword (int __ix)โ Access to integer array.char narrow (char_type __c, char __dfault) constโ Squeezes characters.__ostream_type & operator<< (__streambuf_type *__sb)โ Extracting from another streambuf.__ostream_type & operator<< (const void *__p)โ Pointer arithmetic inserters.__ostream_type & operator<< (const volatile void *__p)โ no description given, just the signature โจ__ostream_type & operator<< (nullptr_t)โ no description given, just the signature โจ__istream_type & operator>> (__streambuf_type *__sb)โ Extracting into another streambuf.__istream_type & operator>> (void *&__p)โ Basic arithmetic extractors.streamsize precision () constโ Flags access.streamsize precision (streamsize __prec)โ Changing flags.void *& pword (int __ix)โ Access to void pointer array.basic_streambuf< _CharT, _Traits > * rdbuf () constโ Accessing the underlying buffer.basic_streambuf< _CharT, _Traits > * rdbuf (basic_streambuf< _CharT, _Traits > *__sb)โ Changing the underlying buffer.iostate rdstate () constโ Returns the error state of the stream buffer.void register_callback (event_callback __fn, int __index)โ Add the callback__fnwith parameter__index.__ostream_type & seekp (off_type, ios_base::seekdir)โ Changing the current write position.__ostream_type & seekp (pos_type)โ Changing the current write position.fmtflags setf (fmtflags __fmtfl)โ Setting new format flags.fmtflags setf (fmtflags __fmtfl, fmtflags __mask)โ Setting new format flags.void setstate (iostate __state)โ Sets additional flags in the error state.pos_type tellp ()โ Getting the current write position.basic_ostream< _CharT, _Traits > * tie () constโ Fetches the current tied stream.basic_ostream< _CharT, _Traits > * tie (basic_ostream< _CharT, _Traits > *__tiestr)โ Ties this stream to an output stream.void unsetf (fmtflags __mask)โ Clearing format flags.char_type widen (char __c) constโ Widens characters.streamsize width () constโ Flags access.streamsize width (streamsize __wide)โ Changing flags.__istream_type & operator>> (__istream_type &(*__pf)(__istream_type &))โ Interface for manipulators.__istream_type & operator>> (__ios_type &(*__pf)(__ios_type &))โ Interface for manipulators.__istream_type & operator>> (ios_base &(*__pf)(ios_base &))โ Interface for manipulators.
๐ฆ Extractors ๐ฆ
All the operator>> functions (aka formatted input functions) have some common behavior. Each starts by constructing a temporary object of type std::basic_istream::sentry with the second argument (noskipws) set to false. This has several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to extract whatever data is appropriate for the type of the argument.
If an exception is thrown during extraction, ios_base::badbit will be turned on in the stream's error state (without causing an ios_base::failure to be thrown) and the original exception will be rethrown if badbit is set in the exceptions mask.
__istream_type & operator>> (bool &__n)โ Integer arithmetic extractors.__istream_type & operator>> (short &__n)โ Integer arithmetic extractors.__istream_type & operator>> (unsigned short &__n)โ Integer arithmetic extractors.__istream_type & operator>> (int &__n)โ Integer arithmetic extractors.__istream_type & operator>> (unsigned int &__n)โ Integer arithmetic extractors.__istream_type & operator>> (long &__n)โ Integer arithmetic extractors.__istream_type & operator>> (unsigned long &__n)โ Integer arithmetic extractors.__istream_type & operator>> (long long &__n)โ Integer arithmetic extractors.__istream_type & operator>> (unsigned long long &__n)โ Integer arithmetic extractors.__istream_type & operator>> (float &__f)โ Floating point arithmetic extractors.__istream_type & operator>> (double &__f)โ Floating point arithmetic extractors.__istream_type & operator>> (long double &__f)โ Floating point arithmetic extractors.
๐ธ Unformatted Input Functions ๐ธ
All the unformatted input functions have some common behavior. Each starts by constructing a temporary object of type std::basic_istream::sentry with the second argument (noskipws) set to true. This has several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to extract whatever data is appropriate for the type of the argument.
The number of characters extracted is stored for later retrieval by gcount().
If an exception is thrown during extraction, ios_base::badbit will be turned on in the stream's error state (without causing an ios_base::failure to be thrown) and the original exception will be rethrown if badbit is set in the exceptions mask.
int_type get ()โ Simple extraction.__istream_type & get (char_type &__c)โ Simple extraction.__istream_type & get (char_type *__s, streamsize __n, char_type __delim)โ Simple multiple-character extraction.__istream_type & get (char_type *__s, streamsize __n)โ Simple multiple-character extraction.__istream_type & get (__streambuf_type &__sb, char_type __delim)โ Extraction into another streambuf.__istream_type & get (__streambuf_type &__sb)โ Extraction into another streambuf.__istream_type & getline (char_type *__s, streamsize __n, char_type __delim)โ String extraction.__istream_type & getline (char_type *__s, streamsize __n)โ String extraction.__istream_type & ignore (streamsize __n, int_type __delim)โ Discarding characters.__istream_type & ignore (streamsize __n)โ Simple extraction.__istream_type & ignore ()โ Simple extraction.__istream_type & ignore (streamsize __n, char __delim)โ Simple extraction.int_type peek ()โ Looking ahead in the stream.__istream_type & read (char_type *__s, streamsize __n)โ Extraction without delimiters.streamsize readsome (char_type *__s, streamsize __n)โ Extraction until the buffer is exhausted, but no more.__istream_type & putback (char_type __c)โ Unextracting a single character.__istream_type & unget ()โ Unextracting the previous character.int sync ()โ Synchronizing the stream buffer.pos_type tellg ()โ Getting the current read position.__istream_type & seekg (pos_type)โ Changing the current read position.__istream_type & seekg (off_type, ios_base::seekdir)โ Changing the current read position.
okay so these next overloads? They're the manipulator ones, and they're giving "hand me a function pointer and I'll call it on the stream" energy โจ
__ostream_type & operator<< (__ostream_type &(*__pf)(__ostream_type &))โ Interface for manipulators.__ostream_type & operator<< (__ios_type &(*__pf)(__ios_type &))โ Interface for manipulators.__ostream_type & operator<< (ios_base &(*__pf)(ios_base &))โ Interface for manipulators.
โจ Inserters โจ
All the operator<< functions (aka formatted output functions) have some common behavior, bestie. Each one starts by constructing a temporary object of type std::basic_ostream::sentry. That can have several effects, and it finishes by setting a status flag; see the sentry documentation for more ๐
If the sentry status is good, the function tries to generate whatever data is appropriate for the type of the argument.
If an exception is thrown during insertion, ios_base::badbit will be turned on in the stream's error state without causing an ios_base::failure to be thrown. The original exception will then be rethrown. ๐ญ
__ostream_type & operator<< (long __n)โ Integer arithmetic inserters.__ostream_type & operator<< (unsigned long __n)โ Integer arithmetic inserters.__ostream_type & operator<< (bool __n)โ Integer arithmetic inserters.__ostream_type & operator<< (short __n)โ Integer arithmetic inserters.__ostream_type & operator<< (unsigned short __n)โ Integer arithmetic inserters.__ostream_type & operator<< (int __n)โ Integer arithmetic inserters.__ostream_type & operator<< (unsigned int __n)โ Integer arithmetic inserters.__ostream_type & operator<< (long long __n)โ Integer arithmetic inserters.__ostream_type & operator<< (unsigned long long __n)โ Integer arithmetic inserters.__ostream_type & operator<< (double __f)โ Floating point arithmetic inserters.__ostream_type & operator<< (float __f)โ Floating point arithmetic inserters.__ostream_type & operator<< (long double __f)โ Floating point arithmetic inserters.
โจ Unformatted Output Functions โจ
All the unformatted output functions have some common behavior. Each starts by constructing a temporary object of type std::basic_ostream::sentry. This has several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to generate whatever data is appropriate for the type of the argument.
If an exception is thrown during insertion, ios_base::badbit will be turned on in the stream's error state. If badbit is on in the stream's exceptions mask, the exception will be rethrown without completing its actions. periodt, that's the rule.
__ostream_type & put (char_type __c)โ Simple insertion.__ostream_type & write (const char_type *__s, streamsize __n)โ Character string insertion.operator bool () constโ The quick-and-easy status check.bool operator! () constโ The quick-and-easy status check.
โจ 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โ no description in the original, it's just sitting there, bestie ๐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.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 }
โจ Protected Member Functions โจ
basic_iostream (basic_iostream &&__rhs)basic_iostream (const basic_iostream &)=deletevoid _M_cache_locale (const locale &__loc)void _M_call_callbacks (event __ev) throw ()void _M_dispose_callbacks (void) throw ()template<typename _ValueT> __istream_type & _M_extract (_ValueT &__v)_Words & _M_grow_words (int __index, bool __iword)void _M_init () throw ()template<typename _ValueT> __ostream_type & _M_insert (_ValueT __v)void _M_move (ios_base &) noexceptvoid _M_swap (ios_base &__rhs) noexceptvoid init (basic_streambuf< _CharT, _Traits > *__sb)โ All setup is performed here.void move (basic_ios &&__rhs)void move (basic_ios &__rhs)basic_iostream & operator= (basic_iostream &&__rhs)basic_iostream & operator= (const basic_iostream &)=deletevoid set_rdbuf (basic_streambuf< _CharT, _Traits > *__sb)void swap (basic_ios &__rhs) noexceptvoid swap (basic_iostream &__rhs)void swap (basic_istream &__rhs)void swap (basic_ostream &__rhs)
โจ Protected Attributes โจ
_Callback_list * _M_callbacksconst __ctype_type * _M_ctypeiostate _M_exceptionchar_type _M_fillbool _M_fill_initfmtflags _M_flagsstreamsize _M_gcountlocale _M_ios_locale_Words _M_local_word [_S_local_word_size]const __num_get_type * _M_num_getconst __num_put_type * _M_num_putstreamsize _M_precisionbasic_streambuf< _CharT, _Traits > * _M_streambufiostate _M_streambuf_statebasic_ostream< _CharT, _Traits > * _M_tiestreamsize _M_width_Words * _M_wordint _M_word_size_Words _M_word_zero
โจ Detailed Description โจ
template<typename _CharT, typename _Traits>
class std::basic_iostream< _CharT, _Traits >"Template class
basic_iostream.
Template Parameters
_CharTโ Type of character stream._Traitsโ Traits for character type, defaults tochar_traits<_CharT>.
This class multiply inherits from the input and output stream classes simply to provide a single interface. iconic behavior, honestly ๐
๐ Member Typedef Documentation ๐
๐ฆ std::ios_base::event_callback
typedef void(* std::ios_base::event_callback) (event __e, ios_base &__b, int __i) [inherited]
It's literally just the type of an event callback function. That's the whole vibe.
Parameters
__eโ one of the members of theeventenum.__bโ a reference to theios_baseobject.__iโ the integer you handed over back when the callback got registered.
Event callbacks are user-defined functions that get called during several ios_base and basic_ios functions โ specifically imbue(), copyfmt(), and ~ios().
๐ std::ios_base::fmtflags
typedef _Ios_Fmtflags std::ios_base::fmtflags [inherited]
This is a bitmask type, bestie. _Ios_Fmtflags is implementation-defined, but you can absolutely do bitwise operations on these values and expect the Right Thing to happen. No cap. The defined objects of type fmtflags are:
boolalphadecfixedhexinternalleftoctrightscientificshowbaseshowpointshowposskipwsunitbufuppercaseadjustfieldbasefieldfloatfield
๐
std::ios_base::iostate
typedef _Ios_Iostate std::ios_base::iostate [inherited]
Another bitmask type ๐ซถ. _Ios_Iostate is implementation-defined, but bitwise ops on these values will give you the Right Thing. The defined objects of type iostate are:
badbiteofbitfailbitgoodbit
๐ std::ios_base::openmode
typedef _Ios_Openmode std::ios_base::openmode [inherited]
Yep, bitmask type again โจ. _Ios_Openmode is implementation-defined, but bitwise operations on these values do the Right Thing. The defined objects of type openmode are:
appatebinaryinouttrunc
โญ std::ios_base::seekdir
typedef _Ios_Seekdir std::ios_base::seekdir [inherited]
This one's an enumerated type, not a bitmask โ plot twist ๐. _Ios_Seekdir is implementation-defined. The 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 ๐ธ
๐ std::ios_base::event
enum std::ios_base::event [inherited]
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 events, three jobs, iconic behavior honestly.
๐ฅ Constructor & Destructor Documentation ๐ฅ
std::basic_iostream< _CharT, _Traits >::basic_iostream
template<typename _CharT, typename _Traits>
std::basic_iostream< _CharT, _Traits >::basic_iostream
(basic_streambuf< _CharT, _Traits > * __sb) [inline], [explicit]
Constructor does nothing. Literally nothing, it's just standing there looking pretty ๐
. Both of the parent classes get initialized with the same streambuf pointer you passed to this constructor, so likeโฆ the work is somebody else's problem.
std::basic_iostream< _CharT, _Traits >::~basic_iostream
template<typename _CharT, typename _Traits>
virtual std::basic_iostream< _CharT, _Traits >::~basic_iostream ()
[inline], [virtual]
Destructor does nothing. Matching energy with the constructor fr fr. ๐
โจ Member Function Documentation โจ
std::ios_base::_M_getloc
const locale & std::ios_base::_M_getloc () const [inline], [inherited]
Locale access, bestie.
Returns
A reference to the current locale.
It's like getloc above, but it returns a reference instead of generating a copy. No extra copying, no extra drama. ๐ฆ
Referenced by std::money_get< _CharT, _InIter >::do_get(), std::num_get< _CharT, _InIter >::do_get(), std::time_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(), and std::time_put< _CharT, _OutIter >::put().
std::basic_ios< _CharT, _Traits >::bad
template<typename _CharT, typename _Traits>
bool std::basic_ios< _CharT, _Traits >::bad () const
[inline], [nodiscard], [inherited]
Fast error checking โก.
Returns
true if the badbit is set.
Heads up though โ other iostate flags may also be set, so don't go reading too much into a single true, okay? ๐
Referenced by std::basic_ostream< _CharT, _Traits >::sentry::sentry().
std::basic_ios< _CharT, _Traits >::clear
template<typename _CharT, typename _Traits>
void std::basic_ios< _CharT, _Traits >::clear (iostate __state = goodbit)
[inherited]
[Re]sets the error state. Yes, the brackets are doing a lot of work there โ it's a re-set, it's a set, it's both, she contains multitudes ๐.
Parameters
__stateโ the new state flag(s) to set.
See std::ios_base::iostate for the possible bit values. Most users will not need to pass an argument โ the default goodbit is right there for you, bestie, you're covered.
References std::ios_base::badbit, exceptions(), rdbuf(), and rdstate().
Referenced by std::basic_ios< char_type, traits_type >::exceptions(), std::basic_fstream< char >::open(), std::basic_fstream< char >::open(), std::basic_ifstream< char >::open(), std::basic_ifstream< char >::open(), std::basic_ofstream< char >::open(), std::basic_ofstream< char >::open(), std::__detail::operator>>(), std::basic_istream< _CharT, _Traits >::putback(), rdbuf(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_ios< char_type, traits_type >::setstate(), and std::basic_istream< _CharT, _Traits >::unget().
std::basic_ios< _CharT, _Traits >::copyfmt
template<typename _CharT, typename _Traits>
basic_ios< _CharT, _Traits > &
std::basic_ios< _CharT, _Traits >::copyfmt
(const basic_ios< _CharT, _Traits > & __rhs) [inherited]
Copies the fields of __rhs into this. It's giving "becoming your bestie" energy โจ.
Parameters
__rhsโ the source values for the copies.
Returns
A reference to this object.
Okay so here's the tea: all fields of __rhs are copied into this object, except that rdbuf() and rdstate() remain unchanged. All values in the pword and iword arrays get copied too. Before copying, each callback is invoked with erase_event. After copying, each (new) callback is invoked with copyfmt_event. And the final step? Copying exceptions(). The grand finale, periodt. ๐
References basic_ios(), std::__addressof(), exceptions(), fill(), std::ios_base::flags(), std::ios_base::getloc(), std::ios_base::precision(), tie(), std::tie(), and std::ios_base::width().
std::basic_ios< _CharT, _Traits >::eof
template<typename _CharT, typename _Traits>
bool std::basic_ios< _CharT, _Traits >::eof () const
[inline], [nodiscard], [inherited]
Fast error checking โก.
Returns
true if the eofbit is set.
And again, reminder: other iostate flags may also be set. ๐ญ
std::basic_ios< _CharT, _Traits >::exceptions (const)
template<typename _CharT, typename _Traits>
iostate std::basic_ios< _CharT, _Traits >::exceptions () const
[inline], [nodiscard], [inherited]
Throwing exceptions on errors.
Returns
The current exceptions mask.
This changes nothing in the stream โ it's a read-only moment, she's just looking ๐. See the one-argument version of exceptions(iostate) for the meaning of the return value.
Referenced by clear(), and copyfmt().
std::basic_ios< _CharT, _Traits >::exceptions (iostate)
template<typename _CharT, typename _Traits>
void std::basic_ios< _CharT, _Traits >::exceptions (iostate __except)
[inline], [inherited]
Throwing exceptions on errors. This is the one that actually does the thing.
Parameters
__exceptโ the new exceptions mask.
By default, error flags are set silently ๐คซ. But you can set an exceptions mask for each stream; if a bit in the mask becomes set in the error flags, then an exception of type std::ios_base::failure is thrown.
โ ๏ธ Important: if the error flag is already set when the exceptions mask is added, the exception is immediately thrown. Not later. Right then. Immediately.
Try running the following under GCC 3.1 or later:
#include <iostream>
#include <fstream>
#include <exception>
int main()
{
std::set_terminate (__gnu_cxx::__verbose_terminate_handler);
std::ifstream f ("/etc/motd");
std::cerr << "Setting badbit\n";
f.setstate (std::ios_base::badbit);
std::cerr << "Setting exception mask\n";
f.exceptions (std::ios_base::badbit);
}
std::basic_ios< _CharT, _Traits >::fail
template<typename _CharT, typename _Traits>
bool std::basic_ios< _CharT, _Traits >::fail () const
[inline], [nodiscard], [inherited]
Fast error checking โก.
Returns
true if either the badbit or the failbit is set.
Checking the badbit inside fail() is historical practice โ it's just how it's always been, we don't make the rules ๐ซ . Note that other iostate flags may also be set.
Referenced by std::basic_ios< char_type, traits_type >::operator bool(), std::basic_ios< char_type, traits_type >::operator!(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_ostream< _CharT, _Traits >::seekp(), std::basic_ostream< _CharT, _Traits >::seekp(), std::basic_istream< _CharT, _Traits >::tellg(), and std::basic_ostream< _CharT, _Traits >::tellp().
std::basic_ios< _CharT, _Traits >::fill (const)
template<typename _CharT, typename _Traits>
char_type std::basic_ios< _CharT, _Traits >::fill () const
[inline], [nodiscard], [inherited]
Retrieves the empty character. ๐ธ
Returns
The current fill character.
It defaults to a space (' ') in the current locale. Classic.
Referenced by copyfmt(), and std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator<<.
std::basic_ios< _CharT, _Traits >::fill (char_type)
template<typename _CharT, typename _Traits>
char_type std::basic_ios< _CharT, _Traits >::fill (char_type __ch)
[inline], [inherited]
Sets a new empty character.
Parameters
__chโ the new character.
Returns
The previous fill character. (You get the old one back, cute little trade-in ๐ .)
The fill character is used to fill out space when P+ characters have been requested (e.g., via setw), Q characters are actually used, and Q<P. It defaults to a space (' ') in the current locale.
std::ios_base::flags (const)
fmtflags std::ios_base::flags () const [inline], [nodiscard], [inherited]
Access to format flags.
Returns
The format control flags for both input and output.
Referenced by 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::chrono::operator<<(), std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator<<, std::__detail::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), and std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator>>.
std::ios_base::flags (fmtflags)
fmtflags std::ios_base::flags (fmtflags __fmtfl) [inline], [inherited]
Setting new format flags all at once. Go big or go home. ๐ฅ
Parameters
__fmtflโ the new flags to set.
Returns
The previous format control flags.
This function overwrites all the format flags with __fmtfl. Every single one. No mercy.
std::basic_ostream< _CharT, _Traits >::flush
template<typename _CharT, typename _Traits>
basic_ostream< _CharT, _Traits > &
std::basic_ostream< _CharT, _Traits >::flush () [inherited]
Synchronizing the stream buffer.
Returns
*this
If rdbuf() is a null pointer, changes nothing โ she simply does not engage. Otherwise, it calls rdbuf()->pubsync(), and if that returns -1, it sets badbit. ๐จ
References std::ios_base::badbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
Referenced by std::flush().
std::basic_istream< _CharT, _Traits >::gcount
template<typename _CharT, typename _Traits>
streamsize std::basic_istream< _CharT, _Traits >::gcount () const
[inline], [inherited]
Character counting. ๐งฎ
Returns โ the number of characters extracted by the previous unformatted input function dispatched for this stream. ๐ซถ
โจ int_type get(void) โจ
Simple extraction, bestie. No frills, just vibes.
Returns โ a character, or eof().
So here's the tea โ: it tries to extract a character. If none are available, it sets failbit and returns traits::eof().
References: _M_gcount, std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
Referenced by: std::basic_istream< char_type, traits_type >::get(), and std::basic_istream< char_type, traits_type >::get().
โจ __istream_type & get(__streambuf_type & __sb) โจ
Extraction into another streambuf. It's giving "hand off the data to your other buffer, queen". ๐
Parameters
__sbโ a streambuf in which to store data.
Returns โ *this
Literally just returns get(__sb,widen('\n')). Iconic, minimal, no notes. โจ
โจ basic_istream< _CharT, _Traits > & get(__streambuf_type & __sb, char_type __delim) โจ
Extraction into another streambuf โ but this time with a stop character, because we love boundaries. ๐
Parameters
__sbโ a streambuf in which to store data.__delimโ a "stop" character.
Returns โ *this
Characters are extracted and inserted into __sb until one of the following happens:
- the input sequence reaches EOF
- insertion into the output buffer fails (in this case, the character that would have been inserted is not extracted)
- the next character equals
__delim(in this case, the character is not extracted) - an exception occurs (and in this case is caught)
If no characters are stored, failbit is set in the stream's error state. ๐ญ
References: _M_gcount, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_streambuf< _CharT, _Traits >::sgetc().
โจ basic_istream< _CharT, _Traits > & get(char_type & __c) โจ
Simple extraction, round two. ๐ฆ
Parameters
__cโ the character in which to store data.
Returns โ *this
Tries to extract a character and store it in __c. If none are available, sets failbit and returns traits::eof().
Note: this function is not overloaded onsigned charandunsigned char. No cap, that's just how it is. ๐
References: _M_gcount, std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
โจ __istream_type & get(char_type * __s, streamsize __n) โจ
Simple multiple-character extraction. We're grabbing a whole lil squad of characters now. ๐
Parameters
__sโ pointer to an array.__nโ maximum number of characters to store in s.
Returns โ *this
Returns get(__s,__n,widen('\n')). That's it, that's the whole function. ๐ซถ
โจ basic_istream< _CharT, _Traits > & get(char_type * __s, streamsize __n, char_type __delim) โจ
Simple multiple-character extraction, with a stop character in the mix. ๐ธ
Parameters
__sโ pointer to an array.__nโ maximum number of characters to store in__s.__delimโ a "stop" character.
Returns โ *this
Characters are extracted and stored into __s until one of the following happens:
__n-1characters are stored- the input sequence reaches EOF
- the next character equals
__delim, in which case the character is not extracted
If no characters are stored, failbit is set in the stream's error state. ๐
In any case, a null character is stored into the next location in the array.
Note: this function is not overloaded onsigned charandunsigned char. Same energy as before, bestie. ๐
References: _M_gcount, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_streambuf< _CharT, _Traits >::sgetc().
โจ __istream_type & getline(char_type * __s, streamsize __n) โจ
String extraction. Now we're in our getline era and it's main character energy fr fr. ๐
Parameters
__sโ a character array in which to store the data.__nโ maximum number of characters to extract.
Returns โ *this
Returns getline(__s,__n,widen('\n')). Short king of a function. โจ
โจ basic_istream< char > & getline(char_type * __s, streamsize __n, char_type __delim) โจ
Explicit specialization declarations, defined in src/istream.cc. Just a lil note for the char girlies. ๐
โจ basic_istream< _CharT, _Traits > & getline(char_type * __s, streamsize __n, char_type __delim) โจ
String extraction, the full meal. ๐
Parameters
__sโ a character array in which to store the data.__nโ maximum number of characters to extract.__delimโ a "stop" character.
Returns โ *this
Extracts and stores characters into __s until one of the following happens. Note that these criteria are required to be tested in the order listed here, to allow an input line to exactly fill the __s array without setting failbit. The order matters, bestie, don't skip ahead. โญ
- the input sequence reaches end-of-file, in which case
eofbitis set in the stream error state - the next character equals
__delim, in which case the character is extracted (and therefore counted ingcount()) but not stored __n-1characters are stored, in which casefailbitis set in the stream error state
If no characters are extracted, failbit is set. (An empty line of input should therefore not cause failbit to be set.) ๐
In any case, a null character is stored in the next location in the array.
Referenced by: std::basic_istream< char_type, traits_type >::getline().
โจ locale getloc() const โจ
Locale access. It's giving "where are we, linguistically speaking". ๐ฆ
Returns โ a copy of the current locale.
If imbue(loc) has previously been called, then this function returns loc. Otherwise, it returns a copy of std::locale(), the global C++ locale.
Referenced by: std::basic_ios< _CharT, _Traits >::copyfmt(), std::money_put< _CharT, _OutIter >::do_put(), std::basic_ios< _CharT, _Traits >::imbue(), std::chrono::operator<<(), std::operator>>(), std::operator>>(), and std::ws().
Also lowkey tagged [nodiscard] โ so don't be ignoring that return value, bestie, the compiler will side-eye you. ๐
โจ bool good() const โจ
Fast error checking. Like a vibe check but for your stream. ๐
Returns โ True if no error flags are set.
A wrapper around rdstate.
Referenced by: std::basic_istream< _CharT, _Traits >::sentry::sentry(), std::basic_ostream< _CharT, _Traits >::sentry::sentry(), and std::__detail::operator>>().
Another [nodiscard] baddie. Read it, don't yeet it. โจ
โจ basic_istream< _CharT, _Traits > & ignore(void) โจ
Simple extraction. Yes, the docs say that again. We love consistency. ๐ซถ
Returns โ a character, or eof().
Tries to extract a character. If none are available, sets failbit and returns traits::eof().
References: _M_gcount, std::ios_base::eofbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_streambuf< _CharT, _Traits >::sbumpc().
Referenced by: std::basic_istream< char_type, traits_type >::ignore().
โจ basic_istream< _CharT, _Traits > & ignore(streamsize __n) โจ
Simple extraction, take two. ๐
Returns โ a character, or eof().
Tries to extract a character. If none are available, sets failbit and returns traits::eof().
References: _M_gcount, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_streambuf< _CharT, _Traits >::sgetc().
โจ __istream_type & ignore(streamsize __n, char __delim) โจ
Simple extraction, take three. The trilogy. ๐ฌ
Returns โ a character, or eof().
Tries to extract a character. If none are available, sets failbit and returns traits::eof().
โจ basic_istream< _CharT, _Traits > & ignore(streamsize __n, int_type __delim) โจ
Discarding characters. This is the "throw it away, we don't want it" function and honestly, relatable. ๐
Parameters
__nโ number of characters to discard.__delimโ a "stop" character.
Returns โ *this
Extracts characters and throws them away until one of the following happens:
- if
__n != std::numeric_limits<int>::max(),__ncharacters are extracted - the input sequence reaches end-of-file
- the next character equals
__delim(in this case, the character is extracted); note that this condition will never occur if__delimequalstraits::eof()
NB: Provide four overloads, instead of the single function (with defaults) mandated by the Standard: this leads to a better performing implementation, while still conforming to the Standard. Not me being extra, just me being efficient. ๐
References: _M_gcount, and std::ios_base::goodbit.
โจ locale imbue(const locale & __loc) โจ
Moves to a new locale. Glow-up for your stream's whole language situation. ๐โจ
Parameters
__locโ the new locale.
Returns โ the previous locale.
Calls ios_base::imbue(loc), and if a stream buffer is associated with this stream, calls that buffer's pubimbue(loc).
Additional l10n notes are at https://gcc.gnu.org/onlinedocs/libstdc++/manual/localization.html โ go read them if you're nosy, iykyk. ๐ฆ
References: std::ios_base::getloc(), std::ios_base::imbue(), and rdbuf().
Referenced by: std::chrono::operator<<().
โจ void init(basic_streambuf< _CharT, _Traits > * __sb) โจ
[protected], [inherited] โ a lil internal moment, not for everyone's eyes. ๐
All setup is performed here. This is called from the public constructor. It is not virtual and cannot be redefined.
Periodt. That's the whole thing. ๐
and it's referenced by literally every single one of these constructors, bestie, like the whole squad showed up:
std::basic_fstream< char >::basic_fstream(),std::basic_fstream< char >::basic_fstream(),std::basic_fstream< char >::basic_fstream(),std::basic_ifstream< char >::basic_ifstream(),std::basic_ifstream< char >::basic_ifstream(),std::basic_ifstream< char >::basic_ifstream(),std::basic_ios< char_type, traits_type >::basic_ios(),std::basic_istream< char_type, traits_type >::basic_istream(),std::basic_istringstream< char >::basic_istringstream(),std::basic_istringstream< char >::basic_istringstream(),std::basic_istringstream< char >::basic_istringstream(),std::basic_ofstream< char >::basic_ofstream(),std::basic_ofstream< char >::basic_ofstream(),std::basic_ofstream< char >::basic_ofstream(),std::basic_ostream< char_type, traits_type >::basic_ostream(),std::basic_ostringstream< char >::basic_ostringstream(),std::basic_ostringstream< char >::basic_ostringstream(),std::basic_ostringstream< char >::basic_ostringstream(),std::basic_stringstream< char >::basic_stringstream(),std::basic_stringstream< char >::basic_stringstream(), andstd::basic_stringstream< char >::basic_stringstream().
๐งฎ long & std::ios_base::iword (int __ix) [inline], [inherited]
Access to integer array. ๐ it's giving "grab me a lil int slot."
Parameters
__ixโ Index into the array. (yes bestie, you gotta say which one)
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. All integers in the array are initialized to 0. ๐ซถ
The implementation reserves several indices. You should use xalloc to obtain an index that is safe to use. Also note that since the array can grow dynamically, it is not safe to hold onto the reference. ๐ like, do NOT keep that reference around, it will betray you.
References iword().
Referenced by iword().
๐ฆ template<typename _CharT, typename _Traits> char std::basic_ios< _CharT, _Traits >::narrow (char_type __c, char __dfault) const [inline], [inherited]
Squeezes characters. ๐ญ iconic behavior honestly.
Parameters
__cโ The character to narrow.__dfaultโ The character to narrow. (yes, same description twice, that's just how the original is, no cap)
Returns
- The narrowed character. โญ
Maps a character of char_type to a character of char, if possible. ๐
Returns the result of
std::use_facet<ctype<char_type> >(getloc()).narrow(c,dfault)
Additional l10n notes are at https://gcc.gnu.org/onlinedocs/libstdc++/manual/localization.html ๐
โ
template<typename _CharT, typename _Traits> std::basic_ios< _CharT, _Traits >::operator bool () const [inline], [explicit], [nodiscard], [inherited]
The quick-and-easy status check. โจ This allows you to write constructs such as if (!a_stream) ... and while (a_stream) ... ๐ like it's literally built for vibe-checking your stream, periodt.
๐ซ template<typename _CharT, typename _Traits> bool std::basic_ios< _CharT, _Traits >::operator! () const [inline], [nodiscard], [inherited]
The quick-and-easy status check. โจ This allows you to write constructs such as if (!a_stream) ... and while (a_stream) ... ๐ธ same energy, opposite sign, we love a duo.
๐๏ธ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (__ios_type &(* __pf )(__ios_type &)) [inline], [inherited]
Interface for manipulators. Manipulators such as std::endl and std::hex use these functions in constructs like "std::cout << std::endl". For more information, see the iomanip header. ๐
๐๏ธ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (__ostream_type &(* __pf )(__ostream_type &)) [inline], [inherited]
Interface for manipulators. Manipulators such as std::endl and std::hex use these functions in constructs like "std::cout << std::endl". For more information, see the iomanip header. ๐
๐ฅ template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::operator<< (__streambuf_type * __sb) [inherited]
Extracting from another streambuf. ๐ okay so you're pulling chars from somebody else's buffer, we love a collab.
Parameters
__sbโ A pointer to a streambuf
This function behaves like one of the basic arithmetic extractors, in that it also constructs a sentry object and has the same error handling behavior. ๐ง
If __sb is NULL, the stream will set failbit in its error state. ๐ญ
Characters are extracted from __sb and inserted into *this until one of the following occurs:
- the input stream reaches end-of-file,
- insertion into the output sequence fails (in this case, the character that would have been inserted is not extracted), or
- an exception occurs while getting a character from
__sb, which setsfailbitin the error state
If the function inserts no characters, failbit is set. ๐
๐ข template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (bool __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (const void * __p) [inline], [inherited]
Pointer arithmetic inserters. โจ
Parameters
__pโ A variable of pointer type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐ธ
๐ง template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (double __f) [inline], [inherited]
Floating point arithmetic inserters. ๐ฆ
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (float __f) [inline], [inherited]
Floating point arithmetic inserters. ๐ฆ
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::operator<< (int __n) [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐๏ธ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (ios_base &(* __pf )(ios_base &)) [inline], [inherited]
Interface for manipulators. Manipulators such as std::endl and std::hex use these functions in constructs like "std::cout << std::endl". For more information, see the iomanip header. ๐
๐ญ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (long __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ซง template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (long double __f) [inline], [inherited]
Floating point arithmetic inserters. ๐ฆ
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (long long __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ฃ template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::operator<< (short __n) [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
References basic_ostream(), std::ios_base::badbit, std::ostreambuf_iterator< _CharT, _Traits >::failed(), std::ios_base::goodbit, std::num_put< _CharT, _OutIter >::put(), std::basic_ios< _CharT, _Traits >::setstate(), and std::use_facet(). ๐ฅ
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (unsigned int __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (unsigned long __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (unsigned long long __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ฌ template<typename _CharT, typename _Traits> __ostream_type & std::basic_ostream< _CharT, _Traits >::operator<< (unsigned short __n) [inline], [inherited]
Integer arithmetic inserters. ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful โ
These functions use the stream's current locale (specifically, the num_get facet) to perform numeric formatting. ๐
๐ค template<typename _CharT, typename _Traits> __istream_type & std::basic_istream< _CharT, _Traits >::operator>> (__ios_type &(* __pf )(__ios_type &)) [inline], [inherited]
Interface for manipulators. Manipulators such as std::ws and std::dec use these functions in constructs like std::cin >> std::ws. For more information, see the iomanip header. ๐ yes bestie, extraction has manipulators too, she's not just a pretty insertion operator ๐
operator>> โ the manipulator one ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(__istream_type &(*__pf)(__istream_type &))
[inline], [inherited]
okay bestie, this is the interface for manipulators โจ Manipulators such as std::ws and std::dec use these functions in constructs like std::cin >> std::ws. For more information, see the iomanip header. ๐
operator>> โ the streambuf one ๐
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits> &
std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type *__sb)
[inherited]
Extracting into another streambuf. it's giving relay race ๐โโ๏ธ
Parameters
__sbโ A pointer to a streambuf
This function behaves like one of the basic arithmetic extractors, in that it also constructs a sentry object and has the same error handling behavior.
If __sb is NULL, the stream will set failbit in its error state. not the vibe ๐
Characters are extracted from this stream and inserted into the __sb streambuf until one of the following occurs:
- the input stream reaches end-of-file,
- insertion into the output buffer fails (in this case, the character that would have been inserted is not extracted), or
- an exception occurs (and in this case is caught)
If the function inserts no characters, failbit is set.
References std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios<_CharT, _Traits>::rdbuf(), and std::basic_ios<_CharT, _Traits>::setstate().
operator>> (bool &) ๐ข
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(bool &__n)
[inline], [inherited]
Integer arithmetic extractors. yes, bool counts as an integer here, don't fight it ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (double &) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(double &__f)
[inline], [inherited]
Floating point arithmetic extractors. decimals, we love her ๐
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (float &) ๐ธ
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(float &__f)
[inline], [inherited]
Floating point arithmetic extractors. same energy, smaller bits ๐ง
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (int &) ๐
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits> &
std::basic_istream<_CharT, _Traits>::operator>>(int &__n)
[inherited]
Integer arithmetic extractors. the main character of extractors, no cap ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> โ the ios_base manipulator one ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(ios_base &(*__pf)(ios_base &))
[inline], [inherited]
Interface for manipulators. Manipulators such as std::ws and std::dec use these functions in constructs like std::cin >> std::ws. For more information, see the iomanip header. ๐
operator>> (long &) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(long &__n)
[inline], [inherited]
Integer arithmetic extractors. long boi hours ๐ซถ
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (long double &) โจ
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(long double &__f)
[inline], [inherited]
Floating point arithmetic extractors. maximum precision princess ๐
Parameters
__fโ A variable of builtin floating point type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (long long &) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(long long &__n)
[inline], [inherited]
Integer arithmetic extractors. long long, twice the long, twice the slay ๐
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (short &) ๐ฆ
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits> &
std::basic_istream<_CharT, _Traits>::operator>>(short &__n)
[inherited]
Integer arithmetic extractors. short king behavior, respectfully ๐ซก
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
References std::ios_base::badbit, std::ios_base::failbit, std::num_get<_CharT, _InIter>::get(), std::ios_base::goodbit, std::basic_ios<_CharT, _Traits>::setstate(), and std::use_facet().
operator>> (unsigned int &) โญ
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(unsigned int &__n)
[inline], [inherited]
Integer arithmetic extractors. no negatives allowed, boundaries bestie ๐ซ
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (unsigned long &) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(unsigned long &__n)
[inline], [inherited]
Integer arithmetic extractors.
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (unsigned long long &) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(unsigned long long &__n)
[inline], [inherited]
Integer arithmetic extractors. biggest unsigned, absolutely iconic ๐ฅ
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (unsigned short &) ๐ธ
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(unsigned short &__n)
[inline], [inherited]
Integer arithmetic extractors.
Parameters
__nโ A variable of builtin integral type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
operator>> (void *&) ๐
template<typename _CharT, typename _Traits>
__istream_type &
std::basic_istream<_CharT, _Traits>::operator>>(void *&__p)
[inline], [inherited]
Basic arithmetic extractors. pointer edition, lowkey mysterious โจ
Parameters
__pโ A variable of pointer type.
Returns
*thisif successful
These functions use the stream's current locale (specifically, the num_get facet) to parse the input data.
peek โ looking ahead in the stream ๐๏ธ
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits>::int_type
std::basic_istream<_CharT, _Traits>::peek(void)
[inherited]
Looking ahead in the stream. it's giving "no thoughts, just vibes" โ you see it but you do NOT take it ๐ซถ
Returns
- The next character, or
eof().
If, after constructing the sentry object, good() is false, returns traits::eof(). Otherwise reads but does not extract the next input character.
References _M_gcount, std::ios_base::goodbit, and std::basic_ios<_CharT, _Traits>::rdbuf().
precision โ getter ๐ฏ
streamsize std::ios_base::precision() const
[inline], [nodiscard], [inherited]
Flags access.
Returns
- The precision to generate on certain output operations.
Be careful if you try to give a definition of precision here; see DR 189. โ ๏ธ not a drill bestie
Referenced by std::basic_ios<_CharT, _Traits>::copyfmt(), and std::chrono::operator<<().
precision โ setter ๐ฏ
streamsize std::ios_base::precision(streamsize __prec)
[inline], [inherited]
Changing flags.
Parameters
__precโ The new precision value.
Returns
- The previous value of
precision().
put โ simple insertion โ๏ธ
template<typename _CharT, typename _Traits>
basic_ostream<_CharT, _Traits> &
std::basic_ostream<_CharT, _Traits>::put(char_type __c)
[inherited]
Simple insertion. one character, one moment, one legend ๐
Parameters
__cโ The character to insert.
Returns
*this
Tries to insert __c.
Note โ This function is not overloaded onsigned charandunsigned char. ๐
References std::ios_base::badbit, std::ios_base::goodbit, std::basic_ios<_CharT, _Traits>::rdbuf(), and std::basic_ios<_CharT, _Traits>::setstate().
Referenced by std::endl(), and std::ends().
putback โ unextracting a single character โฉ๏ธ
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits> &
std::basic_istream<_CharT, _Traits>::putback(char_type __c)
[inherited]
Unextracting a single character. putting it back like "actually, never mind, you keep it" ๐ญ
Parameters
__cโ The character to push back into the input stream.
Returns
*this
If rdbuf() is not null, calls rdbuf()->sputbackc(c).
If rdbuf() is null or if sputbackc() fails, sets badbit in the error state. badbit, the enemy ๐
Note โ This function first clearseofbit. Since no characters are extracted, the next call togcount()will return0, as required by DR 60.
References _M_gcount, std::ios_base::badbit, std::basic_ios<_CharT, _Traits>::clear(), std::ios_base::eofbit, std::ios_base::goodbit, std::basic_ios<_CharT, _Traits>::rdbuf(), std::basic_ios<_CharT, _Traits>::rdstate(), std::basic_ios<_CharT, _Traits>::setstate(), and std::basic_streambuf<_CharT, _Traits>::sputbackc().
Referenced by std::operator<<().
pword โ access to void pointer array ๐ฎ
void *& std::ios_base::pword(int __ix)
[inline], [inherited]
Access to void pointer array. a whole little closet of pointers, organize her ๐
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. All pointers in the array are initialized to 0.
The implementation reserves several indices. You should use xalloc to obtain an index that is safe to use. Also note that since the array can grow dynamically, it is not safe to hold onto the reference. โ ๏ธ she moves, bestie, do not grab her hand and expect her to stay
rdbuf โ accessing the underlying buffer ๐
template<typename _CharT, typename _Traits>
basic_streambuf<_CharT, _Traits> *
std::basic_ios<_CharT, _Traits>::rdbuf() const
[inline], [nodiscard], [inherited]
Accessing the underlying buffer. peeking under the hood, respectfully ๐
Returns
- The current stream buffer.
This does not change the state of the stream. โจ chill, unbothered, immaculate โจ
okay so this list just keeps going and honestly it's giving "everyone wants a piece of me" energy ๐ โ this one gets referenced by:
clear(), 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< _CharT, _Traits >::get(), std::getline(), std::getline(), std::basic_istream< _CharT, _Traits >::ignore(), std::basic_istream< _CharT, _Traits >::ignore(), imbue(), std::operator<<(), std::basic_istream< _CharT, _Traits >::operator>>(), std::operator>>(), std::operator>>(), std::operator>>(), std::tr2::operator>>(), std::basic_istream< _CharT, _Traits >::peek(), 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< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_ostream< _CharT, _Traits >::seekp(), std::basic_ostream< _CharT, _Traits >::seekp(), std::basic_istream< _CharT, _Traits >::sync(), std::basic_istream< _CharT, _Traits >::tellg(), std::basic_ostream< _CharT, _Traits >::tellp(), std::basic_istream< _CharT, _Traits >::unget(), and std::ws().
like. the whole friend group. periodt. โจ
๐ซถ rdbuf(basic_streambuf*) โ the one that takes an argument
template<typename _CharT, typename _Traits> basic_streambuf< _CharT, _Traits > * std::basic_ios< _CharT, _Traits >::rdbuf (basic_streambuf< _CharT, _Traits > * __sb) [inherited]
Changing the underlying buffer. ๐ฆ
Parameters
__sbโ the new stream buffer.
Returns
- the previous stream buffer. (yes bestie, it hands you back the old one, it's polite like that)
So what it does: it associates a new buffer with the current stream, and โ cute bonus โ it clears the error state. glow-up included, no extra charge. ๐
okay so this next bit is a genuine jump scare, so listen up. Due to historical accidents which the LWG refuses to correct, the I/O library suffers from a design error: this function is hidden in derived classes by overrides of the zero-argument rdbuf(), which is non-virtual for hysterical raisins. As a result, you must use explicit qualifications to access this function via any derived class. it's not a vibe, it's just how it is ๐ญ
for example, like, literally this:
std::fstream foo; // or some other derived type
std::streambuf* p = .....;
foo.ios::rdbuf(p); // ios == basic_ios<char>
References clear().
๐ rdstate() โ tell me how you're really doing
template<typename _CharT, typename _Traits> iostate std::basic_ios< _CharT, _Traits >::rdstate () const [inline], [nodiscard], [inherited]
Returns the error state of the stream buffer.
Returns
- A bit pattern (well, isn't everything?)
See std::ios_base::iostate for the possible bit values. Most users will call one of the interpreting wrappers, e.g., good().
Referenced by std::basic_ios< char_type, traits_type >::bad(), clear(), std::basic_ios< char_type, traits_type >::eof(), std::basic_ios< char_type, traits_type >::fail(), std::basic_ios< char_type, traits_type >::good(), std::basic_istream< _CharT, _Traits >::putback(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_ios< char_type, traits_type >::setstate(), and std::basic_istream< _CharT, _Traits >::unget().
๐ธ read() โ gimme characters, no delimiters, no drama
template<typename _CharT, typename _Traits> basic_istream< _CharT, _Traits > & std::basic_istream< _CharT, _Traits >::read (char_type * __s, streamsize __n) [inherited]
Extraction without delimiters. (she said what she said)
Parameters
__sโ a character array.__nโ maximum number of characters to store.
Returns
*this
If the stream state is good(), it extracts characters and stores them into __s until one of these lil things happens:
__ncharacters are stored- the input sequence reaches end-of-file, in which case the error state is set to
failbit|eofbit.
Note: this function is not overloaded onsigned charandunsigned char. ๐ซ
References _M_gcount, std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
๐ readsome() โ read what's there, then stop being nosy
template<typename _CharT, typename _Traits> streamsize std::basic_istream< _CharT, _Traits >::readsome (char_type * __s, streamsize __n) [inherited]
Extraction until the buffer is exhausted, but no more. like, she respects the buffer's boundaries ๐
Parameters
__sโ a character array.__nโ maximum number of characters to store.
Returns
- the number of characters extracted.
Extracts characters and stores them into __s depending on the number of characters remaining in the streambuf's buffer, rdbuf()->in_avail(), called A here:
- if
A == -1, setseofbitand extracts no characters - if
A == 0, extracts no characters - if
A > 0, extractsmin(A,n)
The goal is to empty the current buffer, and to not request any more from the external input sequence controlled by the streambuf.
References _M_gcount, std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::goodbit, std::min(), std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
๐ register_callback() โ put me in the group chat
void std::ios_base::register_callback (event_callback __fn, int __index) [inherited]
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. If there are multiple callbacks, they are invoked in the order they were registered โ first come, first served, no cutting in line bestie. ๐
๐ฆ seekg(off_type, ios_base::seekdir) โ slide the read head
template<typename _CharT, typename _Traits> basic_istream< _CharT, _Traits > & std::basic_istream< _CharT, _Traits >::seekg (off_type __off, ios_base::seekdir __dir) [inherited]
Changing the current read position.
Parameters
__offโ a file offset object.__dirโ the direction in which to seek.
Returns
*this
If fail() is not true, it calls rdbuf()->pubseekoff(__off,__dir). If that function fails, it sets failbit. ๐ซ
Note: this function first clearseofbit. It does not count the number of characters extracted, if any, and therefore does not affect the next call togcount().
References std::ios_base::badbit, std::basic_ios< _CharT, _Traits >::clear(), std::ios_base::eofbit, std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::failbit, std::ios_base::goodbit, std::ios_base::in, std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::rdstate(), and std::basic_ios< _CharT, _Traits >::setstate().
โจ seekg(pos_type) โ same thing but with a position
template<typename _CharT, typename _Traits> basic_istream< _CharT, _Traits > & std::basic_istream< _CharT, _Traits >::seekg (pos_type __pos) [inherited]
Changing the current read position.
Parameters
__posโ a file position object.
Returns
*this
If fail() is not true, it calls rdbuf()->pubseekpos(__pos). If that function fails, it sets failbit. ๐
Note: this function first clearseofbit. It does not count the number of characters extracted, if any, and therefore does not affect the next call togcount().
References std::ios_base::badbit, std::basic_ios< _CharT, _Traits >::clear(), std::ios_base::eofbit, std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::failbit, std::ios_base::goodbit, std::ios_base::in, std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::rdstate(), and std::basic_ios< _CharT, _Traits >::setstate().
๐ seekp(off_type, ios_base::seekdir) โ slide the write head
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::seekp (off_type __off, ios_base::seekdir __dir) [inherited]
Changing the current write position.
Parameters
__offโ a file offset object.__dirโ the direction in which to seek.
Returns
*this
If fail() is not true, it calls rdbuf()->pubseekoff(off,dir). If that function fails, it sets failbit.
References std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::failbit, std::ios_base::out, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
๐ seekp(pos_type) โ write head, but positioned
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::seekp (pos_type __pos) [inherited]
Changing the current write position.
Parameters
__posโ a file position object.
Returns
*this
If fail() is not true, it calls rdbuf()->pubseekpos(pos). If that function fails, it sets failbit.
References std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::failbit, std::ios_base::out, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
๐ง setf(fmtflags) โ add more format flags, keep the old ones
fmtflags std::ios_base::setf (fmtflags __fmtfl) [inline], [inherited]
Setting new format flags.
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 uninvited. ๐ซถ
Referenced by std::__detail::operator>>().
๐ setf(fmtflags, fmtflags) โ the one with the mask
fmtflags std::ios_base::setf (fmtflags __fmtfl, fmtflags __mask) [inline], [inherited]
Setting new format flags.
Parameters
__fmtflโ additional flags to set.__maskโ the flags mask forfmtfl.
Returns
- the previous format control flags.
This function clears mask in the format flags, then sets fmtfl & mask. An example mask is ios_base::adjustfield.
โญ setstate() โ pile more flags onto the error state
template<typename _CharT, typename _Traits> void std::basic_ios< _CharT, _Traits >::setstate (iostate __state) [inline], [inherited]
Sets additional flags in the error state.
Parameters
__stateโ the additional state flag(s) to set.
See std::ios_base::iostate for the possible bit values.
Referenced by:
std::basic_ostream< _CharT, _Traits >::sentry::sentry()std::basic_fstream< char >::close()std::basic_ifstream< char >::close()std::basic_ofstream< char >::close()std::basic_ostream< _CharT, _Traits >::flush()std::basic_istream< _CharT, _Traits >::get()std::basic_istream< _CharT, _Traits >::get()std::getline()std::getline()std::basic_fstream< char >::open()std::basic_fstream< char >::open()std::basic_ifstream< char >::open()std::basic_ifstream< char >::open()std::basic_ofstream< char >::open()std::basic_ofstream< char >::open()std::basic_ostream< _CharT, _Traits >::operator<<()std::operator<<()std::operator<<()std::basic_istream< _CharT, _Traits >::operator>>()std::basic_istream< _CharT, _Traits >::operator>>()std::operator>>()std::operator>>()std::operator>>()std::tr2::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< _CharT, _Traits >::seekg()std::basic_istream< _CharT, _Traits >::seekg()std::basic_ostream< _CharT, _Traits >::seekp()std::basic_ostream< _CharT, _Traits >::seekp()std::basic_istream< _CharT, _Traits >::sync()std::ws()
like ok she's popular, we get it ๐ โจ
๐ the rest of the member functions, bestie
template<typename _CharT, typename _Traits> int std::basic_istream< _CharT, _Traits >::sync (void )
[inherited]
Synchronizing the stream buffer. ๐ซง
Returns
0on success,-1on failure
So here's the tea: if rdbuf() is a null pointer, you get -1. That's it, that's the whole vibe.
Otherwise, it calls rdbuf()->pubsync(), and if that comes back with -1, it sets badbit and returns -1. ๐
Otherwise? Returns 0. Slay.
Note โ this function does not count the number of characters extracted, if any, and therefore does not affect the next call to gcount(). no cap, leave your gcount alone โ
References โ std::ios_base::badbit, std::ios_base::goodbit, std::basic_streambuf< _CharT, _Traits >::pubsync(), std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
bool std::ios_base::sync_with_stdio (bool __sync = true)
[static], [inherited]
Interaction with the standard C I/O objects. ๐
Parameters
__syncโ Whether to synchronize or not.
Returns
Trueif the standard streams were previously synchronized.
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
template<typename _CharT, typename _Traits> basic_istream< _CharT, _Traits >::pos_type std::basic_istream< _CharT, _Traits >::tellg (void )
[inherited]
Getting the current read position. ๐
Returns
- A file position object.
If fail() is not false, it returns pos_type(-1) to indicate failure. Otherwise it returns rdbuf()->pubseekoff(0,cur,in). fr fr that's the whole deal.
Note โ this function does not count the number of characters extracted, if any, and therefore does not affect the next call togcount(). At variance withputback,ungetandseekg,eofbitis not cleared first. ๐
References โ std::ios_base::badbit, std::ios_base::cur, std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::in, and std::basic_ios< _CharT, _Traits >::rdbuf().
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits >::pos_type std::basic_ostream< _CharT, _Traits >::tellp ()
[inherited]
Getting the current write position. โ๏ธ
Returns
- A file position object.
If fail() is not false, it returns pos_type(-1) to indicate failure. Otherwise it returns rdbuf()->pubseekoff(0,cur,out). periodt ๐
References โ std::ios_base::cur, std::basic_ios< _CharT, _Traits >::fail(), std::ios_base::out, and std::basic_ios< _CharT, _Traits >::rdbuf().
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > * std::basic_ios< _CharT, _Traits >::tie () const
[inline], [nodiscard], [inherited]
Fetches the current tied stream. ๐
Returns
- A pointer to the tied stream, or
NULLif the stream is not tied.
A stream may be tied (or synchronized) to a second output stream. When this stream performs any I/O, the tied stream is first flushed. For example, std::cin is tied to std::cout. it's giving romantic commitment honestly ๐
Referenced by โ std::basic_ostream< _CharT, _Traits >::sentry::sentry(), and copyfmt().
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > * std::basic_ios< _CharT, _Traits >::tie (basic_ostream< _CharT, _Traits > * __tiestr)
[inline], [inherited]
Ties this stream to an output stream. ๐ชข
Parameters
__tiestrโ The output stream.
Returns
- The previously tied output stream, or
NULLif the stream was not tied.
This sets up a new tie; see tie() for more. shipping them fr ๐ซถ
template<typename _CharT, typename _Traits> basic_istream< _CharT, _Traits > & std::basic_istream< _CharT, _Traits >::unget (void )
[inherited]
Unextracting the previous character. โช
Returns
*this
If rdbuf() is not null, it calls rdbuf()->sungetc(c).
If rdbuf() is null or if sungetc() fails, it sets badbit in the error state. ๐ญ
Note โ this function first clearseofbit. Since no characters are extracted, the next call togcount()will return0, as required by DR 60. ok queen we love a standards-compliant undo ๐
References โ _M_gcount, std::ios_base::badbit, std::basic_ios< _CharT, _Traits >::clear(), std::ios_base::eofbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::rdstate(), and std::basic_streambuf< _CharT, _Traits >::sungetc().
Referenced by โ std::__detail::operator>>().
void std::ios_base::unsetf (fmtflags __mask)
[inline], [inherited]
Clearing format flags. ๐งน
Parameters
__maskโ The flags to unset.
This function clears __mask in the format flags. bye bestie ๐
template<typename _CharT, typename _Traits> char_type std::basic_ios< _CharT, _Traits >::widen (char __c) const
[inline], [inherited]
Widens characters. ๐ธ
Parameters
__cโ The character to widen.
Returns
- The widened character.
Maps a character of char to a character of char_type.
Returns the result of
std::use_facet<ctype<char_type> >(getloc()).widen(c)
Additional l10n notes are at https://gcc.gnu.org/onlinedocs/libstdc++/manual/localization.html ๐โจ
Referenced by โ std::endl(), std::basic_ios< char_type, traits_type >::fill(), std::basic_istream< char_type, traits_type >::get(), std::basic_istream< char_type, traits_type >::get(), std::basic_istream< char_type, traits_type >::getline(), std::getline(), std::getline(), std::operator<<(), std::operator<<(), std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator<<, and std::tr2::operator>>().
streamsize std::ios_base::width () const
[inline], [nodiscard], [inherited]
Flags access. ๐
Returns
- The minimum field width to generate on output operations.
Minimum field width refers to the number of characters. ๐งฎ
Referenced by โ std::basic_ios< _CharT, _Traits >::copyfmt(), std::num_put< _CharT, _OutIter >::do_put(), std::operator>>(), and std::operator>>().
streamsize std::ios_base::width (streamsize __wide)
[inline], [inherited]
Changing flags. ๐๏ธ
Parameters
__wideโ The new width value.
Returns
- The previous value of
width().
template<typename _CharT, typename _Traits> basic_ostream< _CharT, _Traits > & std::basic_ostream< _CharT, _Traits >::write (const char_type * __s, streamsize __n)
[inherited]
Character string insertion. ๐
Parameters
__sโ The array to insert.__nโ Maximum number of characters to insert.
Returns
*this
Characters are copied from __s and inserted into the stream until one of the following happens:
__ncharacters are inserted- inserting into the output sequence fails (in this case,
badbitwill be set in the stream's error state)
Note โ this function is not overloaded onsigned charandunsigned char. ngl that one trips people up every time ๐
int std::ios_base::xalloc ()
[static], [inherited]
Access to unique indices. ๐ข
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. iconic behavior honestly ๐
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. no cap ๐ซถ
๐ Member Data Documentation ๐
template<typename _CharT, typename _Traits> streamsize std::basic_istream< _CharT, _Traits >::_M_gcount
[protected], [inherited]
The number of characters extracted in the previous unformatted function; see gcount(). ๐
Referenced by โ get(), get(), get(), get(), ignore(), ignore(), ignore(), peek(), putback(), read(), readsome(), and unget().
const fmtflags std::ios_base::adjustfield
[static], [inherited]
A mask of left|right|internal. Useful for the 2-arg form of setf. ๐
Referenced by โ std::num_put< _CharT, _OutIter >::do_put(), std::internal(), std::left(), and std::right().
const openmode std::ios_base::app
[static], [inherited]
Seek to end before each write. ๐
Referenced by โ std::basic_filebuf< char_type, traits_type >::_M_set_buffer(), std::basic_filebuf< _CharT, _Traits >::overflow(), and std::basic_filebuf< _CharT, _Traits >::xsputn().
const openmode std::ios_base::ate
[static], [inherited]
Open and seek to end immediately after opening. ๐
Referenced by โ std::basic_filebuf< _CharT, _Traits >::open().
const iostate std::ios_base::badbit
[static], [inherited]
Indicates a loss of integrity in an input or output sequence (such as an irrecoverable read error from a file). ๐
Referenced by โ std::basic_istream< _CharT, _Traits >::sentry::sentry(), std::basic_ostream< _CharT, _Traits >::sentry::~sentry(), std::basic_ios< _CharT, _Traits >::clear(), std::basic_ostream< _CharT, _Traits >::flush(), std::basic_iostream< char_type, traits_type >::get(), std::basic_istream< _CharT, _Traits >::get(), std::basic_istream< _CharT, _Traits >::get(), std::basic_iostream< char_type, traits_type >::operator<<(), std::basic_ostream< _CharT, _Traits >::operator<<(), std::basic_istream< _CharT, _Traits >::operator>>(), std::operator>>(), std::basic_ostream< _CharT, _Traits >::put(), std::basic_istream< _CharT, _Traits >::putback(), std::basic_istream< _CharT, _Traits >::read(), std::basic_istream< _CharT, char_traits< _CharT > >::read(), std::basic_istream< _CharT, _Traits >::readsome(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream< _CharT, _Traits >::sync(), std::basic_istream< _CharT, _Traits >::tellg(), std::basic_istream< _CharT, _Traits >::unget(), and std::ws().
const fmtflags std::ios_base::basefield
[static], [inherited]
A mask of dec|oct|hex. Useful for the 2-arg form of setf. ๐ข
Referenced by โ std::dec(), std::num_get< _CharT, _InIter >::do_get(), std::num_put< _CharT, _OutIter >::do_put(), std::hex(), and std::oct().
const seekdir std::ios_base::beg
[static], [inherited]
Request a seek relative to the beginning of the stream. โฎ๏ธ
Referenced by โ std::basic_filebuf< _CharT, _Traits >::seekpos().
const openmode std::ios_base::binary
[static], [inherited]
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. ๐ญ seriously bestie, read the link
Referenced by โ std::basic_filebuf< _CharT, _Traits >::showmanyc().
const fmtflags std::ios_base::boolalpha
[static], [inherited]
Insert/extract bool in alphabetic rather than numeric format. ๐ค
Referenced by โ std::boolalpha(), std::num_get< _CharT, _InIter >::do_get(), std::num_put< _CharT, _OutIter >::do_put(), and std::noboolalpha().
const seekdir std::ios_base::cur
[static], [inherited]
Request a seek relative to the current position within the sequence. ๐
(okay bestie we're mid-list rn โ this is the tail end of the referencer list for the constant right above, and THEN we get into the fresh ones โจ)
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(), and
std::basic_ostream< _CharT, _Traits >::tellp().
const fmtflags std::ios_base::dec [static], [inherited]
Converts integer input or generates integer output in decimal base. It's giving base ten, the classic, the one everybody knows ๐
Referenced by:
std::dec(), std::philox_engine< uint_fast32_t, 32, 4, 10,
0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator<<, and
std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9,
0xD2511F53, 0xBB67AE85 >::operator>>.
const seekdir std::ios_base::end [static], [inherited]
Request a seek relative to the current end of the sequence. So like, start counting from the back, not the front ๐
Referenced by:
std::basic_filebuf< _CharT, _Traits >::open(), and
std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff().
const iostate std::ios_base::eofbit [static], [inherited]
Indicates that an input operation reached the end of an input sequence. Bestie, you hit the wall. There is no more. It's over ๐
Referenced by:
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(), 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_istream< _CharT, _Traits >::get(), std::basic_istream<
_CharT, _Traits >::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, char_traits< _CharT > >::peek(), 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< _CharT, char_traits< _CharT >
>::seekg(), std::basic_istream< _CharT, _Traits >::unget(),
std::basic_istream< _CharT, char_traits< _CharT > >::unget(), and
std::ws().
const iostate std::ios_base::failbit [static], [inherited]
Indicates that an input operation failed to read the expected characters, or that an output operation failed to generate the desired characters. Not me getting humbled by an input stream ๐ญ it wanted something specific and it did NOT get it.
Referenced by:
std::basic_ostream< _CharT, _Traits >::sentry::sentry(),
std::basic_fstream< char >::close(), std::basic_ifstream< char
>::close(), std::basic_ofstream< char >::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_istream< _CharT, _Traits >::get(), std::basic_istream<
_CharT, _Traits >::get(), std::time_get< _CharT, _InIter >::get(),
std::basic_fstream< char >::open(), std::basic_fstream< char >::open(),
std::basic_ifstream< char >::open(), std::basic_ifstream< char
>::open(), std::basic_ofstream< char >::open(), std::basic_ofstream<
char >::open(), std::operator<<(), std::basic_iostream< char_type,
traits_type >::operator>>(), std::basic_istream< _CharT, _Traits
>::operator>>(), std::basic_istream< _CharT, _Traits >::operator>>(),
std::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(), and std::basic_ostream< _CharT, _Traits >::seekp().
const fmtflags std::ios_base::fixed [static], [inherited]
Generate floating-point output in fixed-point notation. No exponential nonsense, just numbers looking like numbers ๐ซถ
Referenced by:
std::fixed(), and std::hexfloat().
const fmtflags std::ios_base::floatfield [static], [inherited]
A mask of scientific|fixed. Useful for the 2-arg form of setf. She's a mask, she's a combo deal, she's exactly what you reach for when you're doing the two-argument setf thing ๐
Referenced by:
std::defaultfloat(), std::fixed(), std::hexfloat(), and
std::scientific().
const iostate std::ios_base::goodbit [static], [inherited]
Indicates all is well. The vibe check PASSED. Everything is fine. We're so back ๐ธ
Referenced by:
std::basic_istream< _CharT, _Traits >::sentry::sentry(),
std::num_get< _CharT, _InIter >::do_get(), std::time_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_iostream<
char_type, traits_type >::get(), std::basic_istream< _CharT, _Traits
>::get(), std::basic_istream< _CharT, _Traits >::get(),
std::basic_istream< _CharT, _Traits >::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_istream< _CharT, _Traits
>::ignore(), std::basic_iostream< char_type, traits_type
>::operator<<(), std::basic_ostream< _CharT, _Traits >::operator<<(),
std::basic_iostream< char_type, traits_type >::operator>>(),
std::basic_istream< _CharT, _Traits >::operator>>(), std::basic_istream<
_CharT, _Traits >::operator>>(), std::operator>>(), std::basic_istream<
_CharT, _Traits >::peek(), 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< _CharT, _Traits >::seekg(),
std::basic_istream< _CharT, _Traits >::seekg(), std::basic_istream<
_CharT, _Traits >::sync(), std::basic_istream< _CharT, _Traits
>::unget(), and std::ws().
const fmtflags std::ios_base::hex [static], [inherited]
Converts integer input or generates integer output in hexadecimal base. Base sixteen, the hacker girl aesthetic, 0x coded fr fr ๐ฅ
Referenced by:
std::num_get< _CharT, _InIter >::do_get(), std::num_put<
_CharT, _OutIter >::do_put(), and std::hex().
const openmode std::ios_base::in [static], [inherited]
Open for input. Default for ifstream and fstream. Reading mode, bestie โ she's here to take things IN ๐
Referenced by:
std::basic_fstream< char >::basic_fstream(),
std::basic_fstream< char >::basic_fstream(), std::basic_fstream< char
>::basic_fstream(), std::basic_ifstream< char >::basic_ifstream(),
std::basic_ifstream< char >::basic_ifstream(), std::basic_ifstream< char
>::basic_ifstream(), std::basic_istringstream< char
>::basic_istringstream(), std::basic_stringbuf< char
>::basic_stringbuf(), std::basic_stringstream< char
>::basic_stringstream(), std::basic_filebuf< char_type, traits_type
>::_M_set_buffer(), std::basic_fstream< char >::open(),
std::basic_fstream< char >::open(), std::basic_fstream< char >::open(),
std::basic_ifstream< char >::open(), std::basic_ifstream< char
>::open(), std::basic_ifstream< char >::open(), std::basic_stringbuf<
_CharT, _Traits, _Alloc >::overflow(), std::basic_filebuf< _CharT,
_Traits >::pbackfail(), std::basic_streambuf< char_type, traits_type
>::pubseekoff(), std::basic_streambuf< char_type, traits_type
>::pubseekpos(), std::basic_istream< _CharT, _Traits >::seekg(),
std::basic_istream< _CharT, _Traits >::seekg(), std::basic_streambuf<
char_type, traits_type >::seekoff(), std::basic_stringbuf< _CharT,
_Traits, _Alloc >::seekoff(), std::basic_stringbuf< char >::seekoff(),
std::basic_streambuf< char_type, traits_type >::seekpos(),
std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(),
std::basic_stringbuf< char >::seekpos(), std::basic_filebuf< _CharT,
_Traits >::showmanyc(), std::basic_stringbuf< char >::showmanyc(),
std::basic_istream< _CharT, _Traits >::tellg(), std::basic_filebuf<
_CharT, _Traits >::underflow(), std::basic_stringbuf< _CharT, _Traits,
_Alloc >::underflow(), and std::basic_filebuf< _CharT, _Traits
>::xsgetn().
const fmtflags std::ios_base::internal [static], [inherited]
Adds fill characters at a designated internal point in certain generated output, or identical to right if no such point is designated. Sneaky little in-between placement, and if there's no designated point she just defaults to acting like right ๐
Referenced by:
std::internal().
const fmtflags std::ios_base::left [static], [inherited]
Adds fill characters on the right (final positions) of certain generated output. (I.e., the thing you print is flush left.). Padding goes on the right, your text chills on the left, balanced, iconic ๐
Referenced by:
std::num_put< _CharT, _OutIter >::do_put(), std::left(),
and std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57,
0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator<<.
const fmtflags std::ios_base::oct [static], [inherited]
Converts integer input or generates integer output in octal base. Base eight, the niche queen, barely anyone invites her but she's valid ๐
Referenced by:
std::oct().
const openmode std::ios_base::out [static], [inherited]
Open for output. Default for ofstream and fstream. Writing mode, she's giving things OUT, main character energy โจ
Referenced by:
std::basic_fstream< char >::basic_fstream(),
std::basic_fstream< char >::basic_fstream(), std::basic_fstream< char
>::basic_fstream(), std::basic_ofstream< char >::basic_ofstream(),
std::basic_ofstream< char >::basic_ofstream(), std::basic_ofstream< char
>::basic_ofstream(), std::basic_ostringstream< char
>::basic_ostringstream(), std::basic_stringbuf< char
>::basic_stringbuf(), std::basic_stringstream< char
>::basic_stringstream(), std::basic_filebuf< char_type, traits_type
>::_M_set_buffer(), std::basic_fstream< char >::open(),
std::basic_fstream< char >::open(), std::basic_fstream< char >::open(),
std::basic_ofstream< char >::open(), std::basic_ofstream< char
>::open(), std::basic_ofstream< char >::open(), std::basic_filebuf<
_CharT, _Traits >::overflow(), std::basic_stringbuf< _CharT, _Traits,
_Alloc >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc
>::pbackfail(), std::basic_streambuf< char_type, traits_type
>::pubseekoff(), std::basic_streambuf< char_type, traits_type
>::pubseekpos(), std::basic_streambuf< char_type, traits_type
>::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc
>::seekoff(), std::basic_stringbuf< char >::seekoff(),
std::basic_ostream< _CharT, _Traits >::seekp(), std::basic_ostream<
_CharT, _Traits >::seekp(), std::basic_streambuf< char_type, traits_type
>::seekpos(), std::basic_stringbuf< _CharT, _Traits, _Alloc
>::seekpos(), std::basic_stringbuf< char >::seekpos(),
std::basic_ostream< _CharT, _Traits >::tellp(), and std::basic_filebuf<
_CharT, _Traits >::xsputn().
const fmtflags std::ios_base::right [static], [inherited]
Adds fill characters on the left (initial positions) of certain generated output. (I.e., the thing you print is flush right.). Padding on the left, your text snuggled up on the right, cozy ๐ฆ
Referenced by:
std::right().
const fmtflags std::ios_base::scientific [static], [inherited]
Generates floating-point output in scientific notation. Big numbers, tiny notation, 1e10 girlies rise up ๐
Referenced by:
std::hexfloat(), and std::scientific().
const fmtflags std::ios_base::showbase [static], [inherited]
Generates a prefix indicating the numeric base of generated integer output. She adds the little 0x / 0 badge so you can tell at a glance what base you're looking at โญ no guessing, no cap.
Still riding that showbase energy from the last part, bestie โ it's referenced by std::num_put< _CharT, _OutIter >::do_put(), std::noshowbase(), and std::showbase(). ๐
const fmtflags std::ios_base::showpoint[static], [inherited] โ this one generates a decimal-point character unconditionally in generated floating-point output. like, even when the number is a whole vibe, it still gets a.because the flag said so. ๐- Referenced by
std::noshowpoint(), andstd::showpoint().
- Referenced by
const fmtflags std::ios_base::showpos[static], [inherited] โ generates a+sign in non-negative generated numeric output. yes, positivity is mandatory now. โจ- Referenced by
std::noshowpos(), andstd::showpos().
- Referenced by
const fmtflags std::ios_base::skipws[static], [inherited] โ skips leading white space before certain input operations. it's giving "we do not perceive the extra spaces, bestie." ๐- Referenced by
std::noskipws(),std::__detail::operator>>(),std::philox_engine< uint_fast32_t, 32, 4, 10, 0xCD9E8D57, 0x9E3779B9, 0xD2511F53, 0xBB67AE85 >::operator>>, andstd::skipws().
- Referenced by
const openmode std::ios_base::trunc[static], [inherited] โ truncate an existing stream when opening. it's the default forofstream, so if you didn't ask for it, congrats, you still got it. ๐const fmtflags std::ios_base::unitbuf[static], [inherited] โ flushes output after each output operation. no buffering, no patience, just flush. ๐- Referenced by
std::basic_ostream< _CharT, _Traits >::sentry::~sentry(),std::nounitbuf(), andstd::unitbuf().
- Referenced by
const fmtflags std::ios_base::uppercase[static], [inherited] โ replaces certain lowercase letters with their uppercase equivalents in generated output. glow-up for your hex digits, lowkey. ๐- 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 there's no human author to @ here, just the robot doing its little documentation thing. ๐คโจ
And that's the whole page, bestie โ brought to you by libstdc++, with the footer doing its tiny std::basic... _Traits >(3) signature. no date dropped in this chunk, so consider this your timestamp-less lil kiss goodbye. mwah. ๐๐ซถ
๐ฆ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 ยท GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 ยท GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms