std::basic_...buf::seekpos(3)
πΈ NAME πΈ
okay so bestie, this is the std::basic_spanbuf::seekpos page from the C++ Standard Libary manual β the header shortens the title to std::basic_...buf::seekpos(3). The NAME section is literally:
std::basic_spanbuf::seekpos - std::basic_spanbuf::seekpos
it's giving "title so nice they said it twice" π
β¨ Synopsis β¨
This one is protected:, and it's (since C++23) π
protected:
pos_type seekpos( pos_type sp, std::ios_base::openmode which =
std::ios_base::in | std::ios_base::out )
override;
It repositions the next pointer to the get and/or put area, if possible, to the position indicated by sp. π¦
Equivalent to return seekoff(off_type(sp), std::ios_base::beg, which);.
π Parameters π
spβ stream position, such as one obtained byseekoff()orseekpos().whichβ defines whether the input sequences, the output sequence, or both are affected. It can be one or a combination of these constants:inβ affect the input sequenceoutβ affect the output sequence
π Return value π
sp on success or pos_type(off_type(-1)) on failure. no cap, that's the whole return vibe π
π Notes π
seekpos() is called by std::basic_streambuf::pubseekpos(), which is called by the single-argument versions of std::basic_istream::seekg() and std::basic_ostream::seekp(). π«Ά
π§ͺ Example π§ͺ
This section is incomplete. Reason: no example. π
that's it, that's the example section β it's literally incomplete, bestie.
π See also π
pubseekposβ invokesseekpos()(public member function ofstd::basic_streambuf<CharT,Traits>).seekpos[virtual]β repositions the next pointer in the input sequence, output sequence, or both using absolute addressing (virtual protected member function ofstd::basic_stringbuf<CharT,Traits,Allocator>).seekpos[virtual]β repositions the next pointer in the input sequence, output sequence, or both using absolute addressing (virtual protected member function ofstd::strstreambuf).
π·οΈ Category π·οΈ
- Todo no example π
okay that's the whole page, bestie. this one's from http://cppreference.com, dated 2024.06.10, with the footer title std::basic_...buf::seekpos(3). mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms