STD::FPOS(3)
π std::fpos< _StateT > β Library Functions Manual π
okay bestie, welcome to the lore. this is std::fpos< _StateT > from the Library Functions Manual, and it's literally the little guy that holds stream positions. so niche. so important. let's get into it π¦
β¨ NAME β¨
std::fpos< _StateT > β Class representing stream positions.
like. it's a class. it represents stream positions. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <string>
π Public Member Functions
fpos(const fpos &)=defaultfpos(streamoff __off)β Construct position from offset.operator streamoff() constβ Convert to streamoff.fpos operator+(streamoff __off) constβ Add position and offset.fpos & operator+=(streamoff __off)β Add offset to this position.streamoff operator-(const fpos &__other) constβ Subtract position to return offset.fpos operator-(streamoff __off) constβ Subtract offset from position.fpos & operator-=(streamoff __off)β Subtract offset from this position.fpos & operator=(const fpos &)=default_StateT state() constβ Return the last set value of st.void state(_StateT __st)β Remember the value of st.
π Detailed Description
template<typename _StateT>
class std::fpos< _StateT >
"Class representing stream positions.
no cap, here's the tea: the standard places no requirements upon the template parameter StateT. none. zero. it's giving free spirit β¨
but bestie, in this implementation, StateT must be DefaultConstructible, CopyConstructible and Assignable. the standard only requires that fpos should contain a member of type StateT. and in this implementation it also contains an offset stored as a signed integer. iconic. extra. obsessed.
Parameters
- StateT β Type passed to and returned from
state().
π Constructor & Destructor Documentation
template<typename _StateT> std::fpos< _StateT >::fpos (streamoff __off)
[inline]
Construct position from offset. that's it, that's the job π«Ά
π₯ Member Function Documentation
template<typename _StateT> std::fpos< _StateT >::operator streamoff () const
[inline]
Convert to streamoff. glow-up moment, you're a streamoff now π«
template<typename _StateT> fpos std::fpos< _StateT >::operator+ (streamoff __off) const
[inline]
Add position and offset.
template<typename _StateT> fpos & std::fpos< _StateT >::operator+= (streamoff __off)
[inline]
Add offset to this position.
template<typename _StateT> streamoff std::fpos< _StateT >::operator- (const fpos< _StateT > & __other) const
[inline]
Subtract position to return offset.
template<typename _StateT> fpos std::fpos< _StateT >::operator- (streamoff __off) const
[inline]
Subtract offset from position.
template<typename _StateT> fpos & std::fpos< _StateT >::operator-= (streamoff __off)
[inline]
Subtract offset from this position.
template<typename _StateT> _StateT std::fpos< _StateT >::state () const
[inline]
Return the last set value of st.
template<typename _StateT> void std::fpos< _StateT >::state (_StateT __st)
[inline]
Remember the value of st. memory queen π§ β¨
π Author
Generated automatically by Doxygen for libstdc++ from the source code. it wrote itself, we just live here π
and that's the whole page, bestie!! this absolute baddie of a manual page was brought to you by libstdc++ β no date on it, so we're just gonna say it's timeless. periodt. π πππ¦
π¦ 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