STD::WSTREAMBUF(3)

std::basic_streambuf< _CharT, _Traits > β€” Library Functions Manual πŸ’–

okay bestie, welcome to the manual page for std::basic_streambuf< _CharT, _Traits >. This is from the Library Functions Manual, section 3. She's the blueprint, the main character energy behind all your input/output stream buffer situations. Let's get into it.


✨ NAME ✨

std::basic_streambuf< _CharT, _Traits > β€” the actual work of input and output (interface). No cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <streambuf>

Inherited by std::basic_filebuf< wchar_t >, std::basic_stringbuf< wchar_t >, __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, _Traits >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, and std::wbuffer_convert< _Codecvt, _Elem, _Tr >.

πŸ’… Public Types πŸ’…

  • typedef _CharT char_type
  • typedef _Traits traits_type
  • typedef traits_type::int_type int_type
  • typedef traits_type::pos_type pos_type
  • typedef traits_type::off_type off_type
  • typedef basic_streambuf< char_type, traits_type > __streambuf_type β€” this is a non-standard type, bestie.

🌸 Public Member Functions 🌸

  • virtual ~basic_streambuf () β€” destructor deallocates no buffer space. she leaves no mess, iconic.
  • locale getloc () const β€” locale access.
  • streamsize in_avail () β€” looking ahead into the stream.
  • locale pubimbue (const locale &__loc) β€” entry point for imbue().
  • int_type sbumpc () β€” getting the next character.
  • int_type sgetc () β€” getting the next character.
  • streamsize sgetn (char_type *__s, streamsize __n) β€” entry point for xsgetn.
  • int_type snextc () β€” getting the next character.
  • int_type sputbackc (char_type __c) β€” pushing characters back into the input stream.
  • int_type sputc (char_type __c) β€” entry point for all single-character output functions.
  • streamsize sputn (const char_type *__s, streamsize __n) β€” entry point for all single-character output functions.
  • int_type sungetc () β€” moving backwards in the input stream.
  • basic_streambuf * pubsetbuf (char_type *__s, streamsize __n) β€” entry points for derived buffer functions.
  • pos_type pubseekoff (off_type __off, ios_base::seekdir __way, ios_base::openmode __mode=ios_base::in|ios_base::out) β€” alters the stream position.
  • pos_type pubseekpos (pos_type __sp, ios_base::openmode __mode=ios_base::in|ios_base::out) β€” alters the stream position.
  • int pubsync () β€” calls virtual sync function.

πŸ”₯ Protected Member Functions πŸ”₯

  • basic_streambuf () β€” base constructor.
  • basic_streambuf (const basic_streambuf &)
  • void __safe_gbump (streamsize __n)
  • void __safe_pbump (streamsize __n)
  • void gbump (int __n) β€” moving the read position.
  • virtual void imbue (const locale &__loc) β€” changes translations.
  • basic_streambuf & operator= (const basic_streambuf &)
  • virtual int_type overflow (int_type __c=traits_type::eof()) β€” consumes data from the buffer; writes to the controlled sequence.
  • virtual int_type pbackfail (int_type __c=traits_type::eof()) β€” tries to back up the input sequence.
  • void pbump (int __n) β€” moving the write position.
  • virtual pos_type seekoff (off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out) β€” alters the stream positions.
  • virtual pos_type seekpos (pos_type, ios_base::openmode=ios_base::in|ios_base::out) β€” alters the stream positions.
  • virtual basic_streambuf< char_type, _Traits > * setbuf (char_type *, streamsize) β€” manipulates the buffer.
  • void setg (char_type *__gbeg, char_type *__gnext, char_type *__gend) β€” setting the three read area pointers.
  • void setp (char_type *__pbeg, char_type *__pend) β€” setting the three write area pointers.
  • virtual streamsize showmanyc () β€” investigating the data available.
  • void swap (basic_streambuf &__sb)
  • virtual int sync () β€” synchronizes the buffer arrays with the controlled sequences.
  • virtual int_type uflow () β€” fetches more data from the controlled sequence.
  • virtual int_type underflow () β€” fetches more data from the controlled sequence.
  • virtual streamsize xsgetn (char_type *__s, streamsize __n) β€” multiple character extraction.
  • virtual streamsize xsputn (const char_type *__s, streamsize __n) β€” multiple character insertion.
  • char_type * eback () const β€” access to the get area.
  • char_type * gptr () const β€” access to the get area.
  • char_type * egptr () const β€” access to the get area.
  • char_type * pbase () const β€” access to the put area.
  • char_type * pptr () const β€” access to the put area.
  • char_type * epptr () const β€” access to the put area.

πŸŽ€ Protected Attributes πŸŽ€

  • locale _M_buf_locale β€” current locale setting.
  • char_type * _M_in_beg β€” start of get area.
  • char_type * _M_in_cur β€” current read area.
  • char_type * _M_in_end β€” end of get area.
  • char_type * _M_out_beg β€” start of put area.
  • char_type * _M_out_cur β€” current put area.
  • char_type * _M_out_end β€” end of put area.

πŸ‘‘ Friends πŸ‘‘

She's got some very specific besties. Here's the whole VIP list, exactly as written:

template<bool _IsMove, typename _CharT2> __gnu_cxx::__enable_if<
    __is_char< _CharT2 >::__value, _CharT2 * >::__type __copy_move_a2
    (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >,
    _CharT2 *)
streamsize __copy_streambufs_eof (basic_streambuf *__sbin,
    basic_streambuf *__sbout, bool &__ineof)
void __istream_extract (istream &, char *, streamsize)
template<typename _CharT2, typename _Distance> __gnu_cxx::__enable_if<
    __is_char< _CharT2 >::__value, void >::__type advance
    (istreambuf_iterator< _CharT2 > &, _Distance)
class basic_ios< char_type, traits_type >
class basic_istream< char_type, traits_type >
class basic_ostream< char_type, traits_type >
template<typename _CharT2> __gnu_cxx::__enable_if< __is_char< _CharT2
    >::__value, istreambuf_iterator< _CharT2 > >::__type find
    (istreambuf_iterator< _CharT2 >, istreambuf_iterator< _CharT2 >,
    const _CharT2 &)
template<typename _CharT2, typename _Traits2, typename _Alloc>
    basic_istream< _CharT2, _Traits2 > & getline (basic_istream<
    _CharT2, _Traits2 > &, basic_string< _CharT2, _Traits2, _Alloc > &,
    _CharT2)
class istreambuf_iterator< char_type, traits_type >
template<typename _CharT2, typename _Traits2, typename _Alloc>
    basic_istream< _CharT2, _Traits2 > & operator>> (basic_istream<
    _CharT2, _Traits2 > &, basic_string< _CharT2, _Traits2, _Alloc > &)
class ostreambuf_iterator< char_type, traits_type >

πŸ’– Detailed Description πŸ’–

template<typename _CharT, typename _Traits>
    class std::basic_streambuf< _CharT, _Traits >"The actual work of input
    and output (interface).

🌈 Template Parameters 🌈

  • _CharT β€” type of character stream.
  • _Traits β€” traits for character type, defaults to char_traits<_CharT>.

This is a base class, bestie. Derived stream buffers each control a pair of character sequences: one for input, and one for output. Periodt.

Section [27.5.1] of the standard describes the requirements and behavior of stream buffer classes. That section (three paragraphs, yes ma'am) is reproduced here, for simplicity and accuracy. We're keeping it 100.

  1. Stream buffers can impose various constraints on the sequences they control. Some constraints are:
    • The controlled input sequence can be not readable.
    • The controlled output sequence can be not writable.
    • The controlled sequences can be associated with the contents of other representations for character sequences, such as external files.
    • The controlled sequences can support operations directly to or from associated sequences.
    • The controlled sequences can impose limitations on how the program can read characters from a sequence, write characters to a sequence, put characters back into an input sequence, or alter the stream position.
  2. Each sequence is characterized by three pointers which, if non-null, all point into the same charT array object. The array object represents, at any moment, a (sub)sequence of characters from the sequence. Operations performed on a sequence alter the values stored in these pointers, perform reads and writes directly to or from associated sequences, and alter the stream position and conversion state as needed to maintain this subsequence relationship. The three pointers are:
    • the beginning pointer, or lowest element address in the array (called xbeg here);
    • the next pointer, or next element address that is a current candidate for reading or writing (called xnext here);
    • the end pointer, or first element address beyond the end of the array (called xend here).
  3. The following semantic constraints shall always apply for any set of three pointers for a sequence, using the pointer names given immediately above:
    • If xnext is not a null pointer, then xbeg and xend shall also be non-null pointers into the same charT array, as described above; otherwise, xbeg and xend shall also be null.
    • If xnext is not a null pointer and xnext < xend for an output sequence, then a write position is available. In this case, *xnext shall be assignable as the next element to write (to put, or to store a character value, into the sequence).
    • If xnext is not a null pointer and xbeg < xnext for an input sequence, then a putback position is available. In this case, xnext[-1] shall have a defined value and is the next (preceding) element to store a character that is put back into the input sequence.
    • If xnext is not a null pointer and xnext< xend for an input sequence, then a read position is available. In this case, *xnext shall have a defined value and is the next element to read (to get, or to obtain a character value, from the sequence).

✨ Member Typedef Documentation ✨

  • __streambuf_type β€” okay so</p> typedef basic_streambuf<char_type, traits_type> std::basic_streambuf< _CharT, _Traits >::__streambuf_type β€” bestie, this one is a non-standard type. Not official, just vibes. πŸ’…
  • char_type β€” typedef _CharT std::basic_streambuf< _CharT, _Traits >::char_type β€” these are the standard types, and the whole point of them is that they give you a standardized way of referring to names of (or names dependent on) the template parameters, which are specific to the implementation. iconic, honestly.
  • int_type β€” typedef traits_type::int_type std::basic_streambuf< _CharT, _Traits >::int_type β€” same deal: standard types, giving you a standardized way of referring to names of (or names dependent on) the template parameters, which are specific to the implementation. πŸŽ€
  • off_type β€” typedef traits_type::off_type std::basic_streambuf< _CharT, _Traits >::off_type β€” yep, another standard type, and again: a standardized way of referring to names of (or names dependent on) the template parameters, which are specific to the implementation. ✨
  • pos_type β€” typedef traits_type::pos_type std::basic_streambuf< _CharT, _Traits >::pos_type β€” standard type behavior, you know the drill: standardized way of referring to names of (or names dependent on) the template parameters, which are specific to the implementation. πŸ¦‹
  • traits_type β€” typedef _Traits std::basic_streambuf< _CharT, _Traits >::traits_type β€” last one, also a standard type, also providing that standardized way of referring to names of (or names dependent on) the template parameters, which are specific to the implementation. periodt. πŸ’œ

✨ Constructor & Destructor Documentation ✨

  • virtual std::basic_streambuf< _CharT, _Traits >::~basic_streambuf () [inline], [virtual] β€” the destructor, and listen: it deallocates no buffer space. That's it. That's the whole thing. 🫢
  • std::basic_streambuf< _CharT, _Traits >::basic_streambuf () [inline], [protected] β€” the base constructor, only called from derived constructors. It sets up all the buffer data to zero, including the pointers described in the basic_streambuf class description. And heads up, because of that:
    • the class starts with no read nor write positions available, and
    • this is not an error. like, it's fine. it's normal. relax. 😭

✨ Member Function Documentation ✨

  • char_type * std::basic_streambuf< _CharT, _Traits >::eback () const [inline], [protected] β€” access to the get area, and these functions are only available to other protected functions, including derived classes. Here's the little trio you need to know:
    • eback() returns the beginning pointer for the input sequence
    • gptr() returns the next pointer for the input sequence
    • egptr() returns the end pointer for the input sequence

Referenced by std::basic_filebuf< char_type, traits_type >::_M_destroy_pback(), std::basic_filebuf< _CharT, _Traits >::imbue(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_filebuf< _CharT, _Traits >::pbackfail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::pbackfail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(), std::basic_streambuf< char_type, traits_type >::sputbackc(), std::basic_streambuf< char_type, traits_type >::sungetc(), std::basic_filebuf< _CharT, _Traits >::underflow(), and std::basic_filebuf< _CharT, _Traits >::xsgetn(). that's a whole friend group right there πŸ’–

  • char_type * std::basic_streambuf< _CharT, _Traits >::egptr () const [inline], [protected] β€” access to the get area again, still only available to other protected functions, including derived classes:
    • eback() returns the beginning pointer for the input sequence
    • gptr() returns the next pointer for the input sequence
    • egptr() returns the end pointer for the input sequence

Referenced by std::basic_filebuf< char_type, traits_type >::_M_create_pback(), std::basic_streambuf< char_type, traits_type >::in_avail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_streambuf< char_type, traits_type >::sbumpc(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(), std::basic_streambuf< char_type, traits_type >::sgetc(), std::basic_filebuf< _CharT, _Traits >::showmanyc(), std::basic_stringbuf< char >::showmanyc(), std::basic_filebuf< _CharT, _Traits >::underflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::underflow(), std::wbuffer_convert< _Codecvt, _Elem, _Tr >::underflow(), std::basic_filebuf< _CharT, _Traits >::xsgetn(), and xsgetn(). πŸ”₯

  • char_type * std::basic_streambuf< _CharT, _Traits >::epptr () const [inline], [protected] β€” now we're on the put area, and same rule: only available to other protected functions, including derived classes:
    • pbase() returns the beginning pointer for the output sequence
    • pptr() returns the next pointer for the output sequence
    • epptr() returns the end pointer for the output sequence

Referenced by std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(), std::basic_streambuf< char_type, traits_type >::sputc(), std::basic_filebuf< _CharT, _Traits >::xsputn(), and xsputn(). ✨

  • void std::basic_streambuf< _CharT, _Traits >::gbump (int __n) [inline], [protected] β€” moving the read position!

Parameters

  • __n β€” the delta by which to move.

And that's literally all it does: this just advances the read position without returning any data.

Referenced by std::basic_filebuf< _CharT, _Traits >::pbackfail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::pbackfail(), std::basic_streambuf< char_type, traits_type >::sbumpc(), std::basic_streambuf< char_type, traits_type >::sputbackc(), std::basic_streambuf< char_type, traits_type >::sungetc(), std::basic_streambuf< char_type, traits_type >::uflow(), and std::basic_filebuf< _CharT, _Traits >::xsgetn(). 🌸

  • locale std::basic_streambuf< _CharT, _Traits >::getloc () const [inline] β€” locale access, bestie. 🌍

Returns the current locale in effect.

So if pubimbue(loc) has been called, then the most recent loc is returned. Otherwise the global locale in effect at the time of construction is returned.

Referenced by std::basic_streambuf< char_type, traits_type >::pubimbue(). πŸŽ€

  • char_type * std::basic_streambuf< _CharT, _Traits >::gptr () const [inline], [protected] β€” back to the get area, and once more with feeling, these are only available to other protected functions, including derived classes:
    • eback() returns the beginning pointer for the input sequence
    • gptr() returns the next pointer for the input sequence
    • egptr() returns the end pointer for the input sequence

Referenced by std::basic_filebuf< char_type, traits_type >::_M_create_pback(), std::basic_filebuf< char_type, traits_type >::_M_destroy_pback(), std::basic_filebuf< _CharT, _Traits >::imbue(), std::basic_streambuf< char_type, traits_type >::in_avail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_filebuf< _CharT, _Traits >::pbackfail(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::pbackfail(), std::basic_streambuf< char_type, traits_type >::sbumpc(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_streambuf< char_type, traits_type >::sgetc(), std::basic_filebuf< _CharT, _Traits >::showmanyc(), std::basic_stringbuf< char >::showmanyc(), std::basic_streambuf< char_type, traits_type >::sputbackc(), std::basic_streambuf< char_type, traits_type >::sungetc(), std::basic_streambuf< char_type, traits_type >::uflow(), std::basic_filebuf< _CharT, _Traits >::underflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::underflow(), std::wbuffer_convert< _Codecvt, _Elem, _Tr >::underflow(), std::basic_filebuf< _CharT, _Traits >::xsgetn(), and xsgetn(). the way this list just keeps GOING πŸ’€

  • virtual void std::basic_streambuf< _CharT, _Traits >::imbue (const locale & __loc) [inline], [protected], [virtual] β€” changes translations. 🧚

Parameters

  • __loc β€” a new locale.

Translations done during I/O which depend on the current locale are changed by this call. And the standard adds: Between invocations of this function a class derived from streambuf can safely cache results of calls to locale functions and to members of facets so obtained.

Note: the base class version does nothing. literally just sits there. respect.

Reimplemented in std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< _CharT, std::char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, and std::basic_filebuf< wchar_t >.

Referenced by std::basic_streambuf< char_type, traits_type >::pubimbue(). πŸ‘‘

  • streamsize std::basic_streambuf< _CharT, _Traits >::in_avail () [inline] β€” looking ahead into the stream. πŸ‘€

Returns the number of characters available.

So: if a read position is available, it returns the number of characters available for reading before the buffer must be refilled. Otherwise it returns the derived showmanyc(). simple as that, no cap. πŸ“

  • virtual int_type std::basic_streambuf< _CharT, _Traits >::overflow (int_type __c = traits_type::eof()) [inline], [protected], [virtual] β€” consumes data from the buffer; writes to the controlled sequence. πŸ’₯

Parameters

  • __c β€” an additional character to consume.

Returns eof() to indicate failure, something else (usually __c, or not_eof()).

Informally: this function is called when the output buffer is full (or does not exist, as buffering need not actually be done). If a buffer exists, it is consumed, with some effect on the controlled sequence. (Typically, the buffer is written out to the sequence verbatim.) In either case, the character c is also written out, if __c is not eof().

For a formal definition of this function, see a good text such as Langer & Kreft, or [27.5.2.4.5]/3-7. πŸ“š

And a functioning output streambuf can be created by overriding only this function (no buffer area will be used). one function!! that's it!! main character energy fr fr

Note: the base class version does nothing, returns eof(). πŸ™ˆ

Reimplemented in __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, std::basic_filebuf< wchar_t >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, std::basic_stringbuf< char >, std::basic_stringbuf< wchar_t >, and std::wbuffer_convert< _Codecvt, _Elem, _Tr >.

Referenced by std::basic_streambuf< char_type, traits_type >::sputc(), and xsputn().


πŸ’… pbackfail β€” the rewind queen πŸ’€

template<typename _CharT, typename _Traits> virtual int_type
std::basic_streambuf< _CharT, _Traits >::pbackfail (int_type __c = traits_type::eof()) [inline], [protected], [virtual]

Bestie. This one tries to back up the input sequence. That's it, that's the whole job. Sometimes you gotta scoot backwards, you know? No cap.

Parameters

  • __c β€” the character to be inserted back into the sequence. (Yeah, you're literally un-reading a character. It's giving time travel. πŸ•°οΈ)

Returns

  • eof() on failure, some other value on success ✨

Postcondition

  • The constraints of gptr(), eback(), and pptr() are the same as for underflow(). 🌸
Note: the base class version does nothing, and returns eof(). So like, if you don't override it, it's just sitting there being unhelpful. πŸ’€

Reimplemented in __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, std::basic_filebuf< wchar_t >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, std::basic_stringbuf< char >, and std::basic_stringbuf< wchar_t >.

Referenced by std::basic_streambuf< char_type, traits_type >::sputbackc(), and std::basic_streambuf< char_type, traits_type >::sungetc().


πŸŽ€ pbase β€” put area pointer number one 🫢

template<typename _CharT, typename _Traits> char_type *
std::basic_streambuf< _CharT, _Traits >::pbase () const [inline], [protected]

Access to the put area, bestie. And okay here's the thing β€” these functions are only available to other protected functions, including derived classes. So it's a members-only situation. iykyk. πŸ’…

The put-area trio, since they all come as a set:

  • pbase() returns the beginning pointer for the output sequence πŸ“
  • pptr() returns the next pointer for the output sequence ✨
  • epptr() returns the end pointer for the output sequence 🌈

Referenced by std::basic_filebuf< _CharT, _Traits >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_filebuf< _CharT, _Traits >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(), std::basic_stringbuf< char >::str(), std::basic_filebuf< _CharT, _Traits >::sync(), and std::basic_filebuf< _CharT, _Traits >::xsputn().


πŸ¦‹ pbump β€” scoot the write position forward ✨

template<typename _CharT, typename _Traits> void std::basic_streambuf<
    _CharT, _Traits >::pbump (int __n) [inline], [protected]

Moving the write position. That's the whole vibe.

Parameters

  • __n β€” the delta by which to move. πŸƒβ€β™€οΈπŸ’¨

And listen: this just advances the write position without returning any data. It moves, it does not give. Very mysterious of it, honestly. πŸ™ˆ

Referenced by std::basic_filebuf< _CharT, _Traits >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), and std::basic_streambuf< char_type, traits_type >::sputc().


🌸 pptr β€” put area pointer number two πŸ‘‘

template<typename _CharT, typename _Traits> char_type *
std::basic_streambuf< _CharT, _Traits >::pptr () const [inline], [protected]

Access to the put area, again. And same rules as before: these functions are only available to other protected functions, including derived classes. Protected girlies only. 🫢

  • pbase() returns the beginning pointer for the output sequence πŸ“
  • pptr() returns the next pointer for the output sequence ✨
  • epptr() returns the end pointer for the output sequence 🌈

Referenced by std::basic_filebuf< _CharT, _Traits >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_filebuf< _CharT, _Traits >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_streambuf< char_type, traits_type >::sputc(), std::basic_filebuf< _CharT, _Traits >::sync(), std::basic_filebuf< _CharT, _Traits >::xsputn(), and xsputn().


πŸ’œ pubimbue β€” the public door to imbue() πŸšͺ

template<typename _CharT, typename _Traits> locale std::basic_streambuf<
    _CharT, _Traits >::pubimbue (const locale & __loc) [inline]

Entry point for imbue(). Very demure, very mindful, very locale. 🌍

Parameters

  • __loc β€” the new locale. πŸŽ€

Returns

  • The previous locale. (Yes, it hands you the old one back, iconic behaviour honestly.) ✨

Calls the derived imbue(__loc). πŸ’…


⭐ pubseekoff β€” public seek, offset edition 🎯

template<typename _CharT, typename _Traits> pos_type std::basic_streambuf<
    _CharT, _Traits >::pubseekoff (off_type __off, ios_base::seekdir __way,
    ios_base::openmode __mode = ios_base::in | ios_base::out) [inline]

Alters the stream position. ✨

Parameters

  • __off β€” offset. πŸ“
  • __way β€” value for ios_base::seekdir. 🌈
  • __mode β€” value for ios_base::openmode. πŸ¦‹

Calls virtual seekoff function. πŸ’…


🌈 pubseekpos β€” public seek, position edition 🎯

template<typename _CharT, typename _Traits> pos_type std::basic_streambuf<
    _CharT, _Traits >::pubseekpos (pos_type __sp, ios_base::openmode __mode
    = ios_base::in | ios_base::out) [inline]

Alters the stream position. Same energy, different flavour. ✨

Parameters

  • __sp β€” position. πŸ“
  • __mode β€” value for ios_base::openmode. πŸ¦‹

Calls virtual seekpos function. πŸ’…


🧚 pubsetbuf β€” entry points for derived buffer functions 🫢

template<typename _CharT, typename _Traits> basic_streambuf *
std::basic_streambuf< _CharT, _Traits >::pubsetbuf (char_type * __s,
streamsize __n) [inline]

Okay so this is the tea on the whole pub-family: the public versions of pubfoo dispatch to the protected derived foo member functions, passing the arguments (if any) and returning the result unchanged. So pubsetbuf is basically the receptionist who forwards your call to the real one and then reads back their answer word for word. πŸ’…


πŸ’– pubsync β€” calls the virtual sync function ✨

template<typename _CharT, typename _Traits> int std::basic_streambuf<
    _CharT, _Traits >::pubsync () [inline]

Calls virtual sync function. That's the whole description bestie, she's efficient. 🫢

Referenced by std::basic_istream< _CharT, _Traits >::sync().


πŸ”₯ sbumpc β€” getting the next character πŸƒβ€β™€οΈ

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
    _CharT, _Traits >::sbumpc () [inline]

Getting the next character. Main character energy, she moves. πŸ’…

Returns

  • The next character, or eof. ✨

And here's how she works: if the input read position is available, returns that character and increments the read pointer, otherwise calls and returns uflow(). So either she's got it ready and she hands it over and walks forward, or she outsources the whole thing to uflow(). Either way, we get the character. Slay. πŸ‘‘

Referenced by std::basic_istream< _CharT, _Traits >::ignore(), std::basic_streambuf< char_type, traits_type >::snextc(), and std::basic_istream< _CharT, char_traits< _CharT > >::unget().


πŸŒ€ seekoff β€” alters the stream positions 🎯

template<typename _CharT, typename _Traits> virtual pos_type
std::basic_streambuf< _CharT, _Traits >::seekoff (off_type ,
ios_base::seekdir , ios_base::openmode  = ios_base::in | ios_base::out)
[inline], [protected], [virtual]

Alters the stream positions. And each derived class provides its own appropriate behavior β€” so nobody's copying anybody's homework here, every subclass does it their own way. πŸ’…

Note: the base class version does nothing, and returns a pos_type that represents an invalid stream position. So if you're calling this on the base and expecting a real answer... bestie, no. 😭

Reimplemented in std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, std::basic_filebuf< wchar_t >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, std::basic_stringbuf< char >, and std::basic_stringbuf< wchar_t >.

Referenced by std::basic_streambuf< char_type, traits_type >::pubseekoff().


⭐ seekpos β€” alters the stream positions, position style πŸ“

template<typename _CharT, typename _Traits> virtual pos_type
std::basic_streambuf< _CharT, _Traits >::seekpos (pos_type ,
ios_base::openmode  = ios_base::in | ios_base::out) [inline],
[protected], [virtual]

Alters the stream positions. Again: each derived class provides its own appropriate behavior. 🌈

Note: base class version does nothing, returns a pos_type that represents an invalid stream position. Same sad story as seekoff. πŸ’€

Reimplemented in std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, std::basic_filebuf< wchar_t >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, std::basic_stringbuf< char >, and std::basic_stringbuf< wchar_t >.

Referenced by std::basic_streambuf< char_type, traits_type >::pubseekpos().


πŸŽ€ setbuf β€” manipulates the buffer 🫢

template<typename _CharT, typename _Traits> virtual basic_streambuf<
    char_type, _Traits > * std::basic_streambuf< _CharT, _Traits >::setbuf
    (char_type * , streamsize ) [inline], [protected], [virtual]

Manipulates the buffer. And yeah, each derived class provides its own appropriate behavior. 🌸

Okay and here's your homework, bestie: see the next-to-last paragraph of https://gcc.gnu.org/onlinedocs/libstdc++/manual/streambufs.html#io.streambuf.buffering for more on this function. Go read it, it's giving lore. πŸ“–

Note: the base class version does nothing, returns this. (At least she returns something, unlike her cousins up there. πŸ’€)

Reimplemented in std::basic_filebuf< _CharT, _Traits >, std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >, std::basic_filebuf< _CharT, std::char_traits< _CharT > >, std::basic_filebuf< char >, std::basic_filebuf< char_type, traits_type >, std::basic_stringbuf< _CharT, _Traits, _Alloc >, and std::basic_stringbuf< char >.

Referenced by std::basic_streambuf< char_type, traits_type >::pubsetbuf().


πŸ“ setg β€” setting the three read area pointers 🎯

template<typename _CharT, typename _Traits> void std::basic_streambuf<
    _CharT, _Traits >::setg (char_type * __gbeg, char_type * __gnext,
    char_type * __gend) [inline], [protected]

Setting the three read area pointers. Three pointers, one function, zero drama. ✨

Parameters

  • __gbeg β€” a pointer. πŸ“
  • __gnext β€” a pointer. πŸ“
  • __gend β€” a pointer. πŸ“

Postcondition

  • __gbeg == eback(), __gnext == gptr(), and __gend == egptr() πŸ’–

Referenced by std::wbuffer_convert< _Codecvt, _Elem, _Tr >::wbuffer_convert(), std::basic_filebuf< char_type, traits_type >::_M_create_pback(), std::basic_filebuf< char_type, traits_type >::_M_destroy_pback(), std::basic_filebuf< char_type, traits_type >::_M_set_buffer(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekoff(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::seekpos(), and std::basic_filebuf< _CharT, _Traits >::xsgetn().


πŸ¦‹ setp β€” setting the three write area pointers 🎯

template<typename _CharT, typename _Traits> void std::basic_streambuf<
    _CharT, _Traits >::setp (char_type * __pbeg, char_type * __pend)
    [inline], [protected]

Setting the three write area pointers. The put-side twin of setg, and she's iconic. πŸ’…

Parameters

  • __pbeg β€” a pointer. πŸ“
  • __pend β€” a pointer. πŸ“

Postcondition

  • __pbeg == pbase(), __pbeg == pptr(), and __pend == epptr() πŸ’–

Referenced by std::wbuffer_convert< _Codecvt, _Elem, _Tr >::wbuffer_convert(), and std::basic_filebuf< char_type, traits_type >::_M_set_buffer().


✨ sgetc β€” getting the next character (but make it ✨stationary✨)

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
    _CharT, _Traits >::sgetc () [inline]

Getting the next character. Same mission as sbumpc, except this one does not move the read position after fetching the character. She looks, she does not touch. Very respectful. πŸ™ˆ

Returns

  • The next character, or eof. ✨

And the mechanics: if the input read position is available, returns that character, otherwise calls and returns underflow(). 🌸

Referenced by std::basic_istream< _CharT, _Traits >::get(), std::basic_istream< _CharT, _Traits >::get(), std::basic_istream< _CharT, _Traits >::ignore(), std::basic_istream< _CharT, char_traits< _CharT > >::readsome(), and std::basic_streambuf< char_type, traits_type >::snextc().

(Yes bestie, std::basic_istream< _CharT, _Traits >::get() really is listed twice up there. We don't question the source, we just report it. πŸ’€)

πŸ’œ sgetn β€” entry point for xsgetn 🫢

template<typename _CharT, typename _Traits> streamsize std::basic_streambuf<
    _CharT, _Traits >::sgetn (char_type * __s, streamsize __n) [inline]

Entry point for xsgetn. Short and sweet, she's just the doorman. πŸ’…

Parameters

  • __s β€” a buffer area. πŸ“
  • __n β€” a count. πŸ”’

...and it just hands you back xsgetn(__s,__n). The whole vibe is: fill __s[0] through __s[__n-1] with characters from the input sequence, if it can. That's it, that's the function. πŸ’…


✨ showmanyc() ✨

template<typename _CharT, typename _Traits> virtual streamsize
std::basic_streambuf< _CharT, _Traits >::showmanyc () [inline],
[protected],  [virtual]

Bestie, this one is literally "how many characters do we even have??" energy β€” investigating the data available πŸ•΅οΈβ€β™€οΈ

Returns: an estimate of the number of characters available in the input sequence, or -1.

So here's the tea: if it returns a positive value, then successive calls to underflow() will not return traits::eof() until at least that many characters have been supplied. If showmanyc() returns -1, then calls to underflow() or uflow() will fail. That's [27.5.2.4.3]/1, periodt. 😀

Note β€” the base class version does nothing and returns zero. Iconic behaviour honestly.
Note β€” the standard adds that the intention is not only that the calls (to underflow or uflow) will not return eof() but that they will return immediately. No waiting around, no buffering drama, we move fast. ⚑
Note β€” the standard also adds that the morphemes of showmanyc are es-how-many-see, not show-manic. Not me getting that wrong for years 😭 the way it's actually pronounced is "es-how-many-see". iykyk.

Reimplemented in:

  • std::basic_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >
  • std::basic_filebuf< _CharT, std::char_traits< _CharT > >
  • std::basic_filebuf< char >
  • std::basic_filebuf< char_type, traits_type >
  • std::basic_filebuf< wchar_t >
  • std::basic_stringbuf< _CharT, _Traits, _Alloc >
  • std::basic_stringbuf< char >
  • std::basic_stringbuf< wchar_t >

Referenced by std::basic_streambuf< char_type, traits_type >::in_avail().


πŸ¦‹ snextc() πŸ¦‹

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
_CharT, _Traits >::snextc () [inline]

Getting the next character, slay. ✨

Returns: the next character, or eof.

Here's the move: it calls sbumpc(), and if that function returns traits::eof(), so does this function. Otherwise, it calls sgetc(). That's the whole routine, no notes. πŸ’…

Referenced by std::basic_istream< _CharT, char_traits< _CharT > >::get(), std::basic_iostream< char_type, traits_type >::ignore(), and std::basic_istream< _CharT, char_traits< _CharT > >::readsome().


πŸŽ€ sputbackc() πŸŽ€

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
_CharT, _Traits >::sputbackc (char_type __c) [inline]

Pushing characters back into the input stream β€” yes we're rewinding, main character behaviour only. βͺ

Parameters

  • __c β€” the character to push back.

Returns: the previous character, if possible.

It's similar to sungetc(), but __c is pushed onto the stream instead of the previous character. And if it works? The next character fetched from the input stream will be __c. Put it back, get it back, no cap. 🫢

Referenced by std::basic_istream< _CharT, _Traits >::putback().


πŸ’œ sputc() πŸ’œ

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
_CharT, _Traits >::sputc (char_type __c) [inline]

Entry point for all single-character output functions. The moment you've all been waiting for. πŸ‘‘

Parameters

  • __c β€” a character to output.

Returns: __c, if possible.

This is one of two public output functions. So: if a write position is available for the output sequence (i.e., the buffer is not full), it stores __c in that position, increments the position, and returns traits::to_int_type(__c). If a write position is not available, it returns overflow(__c). Simple as that bestie. ✨

Referenced by std::wbuffer_convert< _Codecvt, _Elem, _Tr >::overflow().


🌸 sputn() 🌸

template<typename _CharT, typename _Traits> streamsize std::basic_streambuf<
_CharT, _Traits >::sputn (const char_type * __s, streamsize __n)
[inline]

(Yes, the description says "Entry point for all single-character output functions" β€” even though this is the multi-character one. The docs said what the docs said and I am not editing the docs. πŸ™ˆ)

Parameters

  • __s β€” a buffer read area.
  • __n β€” a count.

One of the two public output functions, okay?

Returns: xsputn(__s,__n). The effect is to write __s[0] through __s[__n-1] to the output sequence, if possible. Boom, that's the whole thing. πŸ’₯


🧚 sungetc() 🧚

template<typename _CharT, typename _Traits> int_type std::basic_streambuf<
_CharT, _Traits >::sungetc () [inline]

Moving backwards in the input stream. Yes, we're going back, it's giving rewind. πŸ”™

Returns: the previous character, if possible.

If a putback position is available, this function decrements the input pointer and returns that character. Otherwise, it calls and returns pbackfail(). The effect is to unget the last character gotten. So it's undoing the getting. Reversal of fortune, literally. ✨

Referenced by std::basic_istream< _CharT, _Traits >::unget().


🌈 sync() 🌈

template<typename _CharT, typename _Traits> virtual int
std::basic_streambuf< _CharT, _Traits >::sync () [inline],  [protected],
[virtual]

Synchronizes the buffer arrays with the controlled sequences. Syncing is self-care bestie, fr fr. πŸ§˜β€β™€οΈ

Returns: -1 on failure.

Each derived class provides its own appropriate behavior, including the definition of failure. So like, failure is a vibe each subclass defines for itself. πŸ’€

Note β€” the base class version does nothing, returns zero. Minimal effort, maximal peace.

Reimplemented in:

  • __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >
  • std::basic_filebuf< _CharT, std::char_traits< _CharT > >
  • std::basic_filebuf< char >
  • std::basic_filebuf< char_type, traits_type >
  • std::basic_filebuf< wchar_t >
  • std::wbuffer_convert< _Codecvt, _Elem, _Tr >

Referenced by std::basic_streambuf< char_type, traits_type >::pubsync().


⭐ uflow() ⭐

template<typename _CharT, typename _Traits> virtual int_type
std::basic_streambuf< _CharT, _Traits >::uflow () [inline],
[protected],  [virtual]

Fetches more data from the controlled sequence. More data, always more data. πŸ“₯

Returns: the first character from the pending sequence.

Informally, this function does the same thing as underflow(), and in fact is required to call that function. It also returns the new character, like underflow() does. BUT β€” and here's the plot twist β€” this function also moves the read position forward by one. So it's underflow() but with commitment. πŸ”₯

Reimplemented in __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >.

Referenced by std::basic_streambuf< char_type, traits_type >::sbumpc(), and xsgetn().


πŸ’– underflow() πŸ’–

template<typename _CharT, typename _Traits> virtual int_type
std::basic_streambuf< _CharT, _Traits >::underflow () [inline],
[protected],  [virtual]

Fetches more data from the controlled sequence. The classic. The blueprint. The blueprint classic. πŸ‘‘

Returns: the first character from the pending sequence.

Informally, this function is called when the input buffer is exhausted (or does not exist, as buffering need not actually be done β€” honestly, buffering is optional and that's so real of it). If a buffer exists, it is refilled. In either case, the next available character is returned, or traits::eof() to indicate a null pending sequence.

For a formal definition of the pending sequence, see a good text such as Langer & Kreft, or [27.5.2.4.3]/7-14. (Academic queen behaviour, we love to see it. πŸ“š)

A functioning input streambuf can be created by overriding only this function β€” no buffer area will be used. For an example, see https://gcc.gnu.org/onlinedocs/libstdc++/manual/streambufs.html

Note β€” the base class version does nothing, returns eof(). It's giving "I have no data and I'm at peace with that."

Reimplemented in:

  • __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >
  • std::basic_filebuf< _CharT, std::char_traits< _CharT > >
  • std::basic_filebuf< char >
  • std::basic_filebuf< char_type, traits_type >
  • std::basic_filebuf< wchar_t >
  • std::basic_stringbuf< _CharT, _Traits, _Alloc >
  • std::basic_stringbuf< char >
  • std::basic_stringbuf< wchar_t >
  • std::wbuffer_convert< _Codecvt, _Elem, _Tr >

Referenced by std::basic_streambuf< char_type, traits_type >::sgetc(), and std::basic_streambuf< char_type, traits_type >::uflow().


πŸ“ xsgetn() πŸ“

template<typename _CharT, typename _Traits> streamsize std::basic_streambuf<
_CharT, _Traits >::xsgetn (char_type * __s, streamsize __n) [protected],
[virtual]

Multiple character extraction. Bulk mode activated. πŸ“¦

Parameters

  • __s β€” a buffer area.
  • __n β€” maximum number of characters to assign.

Returns: the number of characters assigned.

It fills __s[0] through __s[__n-1] with characters from the input sequence, as if by sbumpc(). It stops when either __n characters have been copied, or when traits::eof() would be copied. Two exit conditions, no exceptions, no notes. βœ‹

It is expected that derived classes provide a more efficient implementation by overriding this definition. So like, the base version works but it's not the moment β€” subclasses are supposed to do better. πŸ’…

Reimplemented in:

  • std::basic_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >
  • std::basic_filebuf< _CharT, std::char_traits< _CharT > >
  • std::basic_filebuf< char >
  • std::basic_filebuf< char_type, traits_type >

References egptr(), gptr(), std::min(), and uflow().

Referenced by std::basic_streambuf< char_type, traits_type >::sgetn().


πŸ’€ xsputn() πŸ’€

template<typename _CharT, typename _Traits> streamsize std::basic_streambuf<
_CharT, _Traits >::xsputn (const char_type * __s, streamsize __n)
[protected],  [virtual]

Multiple character insertion. The put-side twin, and yes she ate. πŸ”₯

Parameters

  • __s β€” a buffer area.
  • __n β€” maximum number of characters to write.

Returns: the number of characters written.

It writes __s[0] through __s[__n-1] to the output sequence, as if by sputc(). It stops when either n characters have been copied, or when sputc() would return traits::eof(). (Note: the docs literally say n here and not __n. I am preserving the lore exactly as it was written. πŸ™ˆ)

It is expected that derived classes provide a more efficient implementation by overriding this definition. Same deal as xsgetn() β€” base is fine, subclass is faster, that's the whole point. ✨

Reimplemented in:

  • std::basic_filebuf< _CharT, _Traits >
  • std::basic_filebuf< _CharT, encoding_char_traits< _CharT > >
  • std::basic_filebuf< _CharT, std::char_traits< _CharT > >
  • std::basic_filebuf< char >
  • std::basic_filebuf< char_type, traits_type >

References epptr(), std::min(), overflow(), and pptr().

Referenced by std::basic_streambuf< char_type, traits_type >::sputn().


🫢 MEMBER DATA DOCUMENTATION 🫢

Okay bestie, this is where the actual guts live. The protected data members. The behind-the-scenes girls. None of them are doing it for the fame, but the whole streambuf would fall apart without them. πŸ’…

πŸ‘‘ _M_buf_locale

template<typename _CharT, typename _Traits> locale std::basic_streambuf<
_CharT, _Traits >::_M_buf_locale [protected]

Current locale setting. She's protected, she's a locale, she's running the whole cultural vibe of the buffer. 🌍

Referenced by std::basic_filebuf< _CharT, _Traits >::basic_filebuf().

πŸ¦‹ _M_in_beg

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_in_beg [protected]

Start of get area. The beginning of the beginning. Where reading starts. ✨

πŸŽ€ _M_in_cur

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_in_cur [protected]

Current read area. This is where we are right now in the reading journey. Present tense, main character energy. πŸ“

🌸 _M_in_end

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_in_end [protected]

End of get area. The boundary. Past this point we have to go fetch more. 😭

πŸ’œ _M_out_beg

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_out_beg [protected]

Start of put area. Where the writing begins. The blank page era. 🎨

🌈 _M_out_cur

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_out_cur [protected]

Current put area. Where we're writing now. ✍️

⭐ _M_out_end

template<typename _CharT, typename _Traits> char_type* std::basic_streambuf<
_CharT, _Traits >::_M_out_end [protected]

End of put area. When we hit this one the buffer is full and overflow() gets summoned. πŸ”₯


πŸ’– AUTHOR πŸ’–

Generated automatically by Doxygen for libstdc++ from the source code. So technically the author is a robot and I respect that immensely, she's doing great. πŸ€–βœ¨


And that's a wrap on the whole page bestie!! We did it!! πŸŽ‰πŸ’…πŸ«Ά This absolute unit of a manpage was generated by Doxygen for libstdc++ straight from the source code, and that footer stamp is libstdc++'s own signature β€” the source/version tag and date living at the bottom like a little "made with love by the build system" note. Go forth and subclass responsibly, and remember: es-how-many-see, not show-manic. πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ 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.0.1-0.10.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
  • 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