STD::_TEMPORARY_BUFFER(3)
π NAME π
std::_Temporary_buffer< _ForwardIterator, _Tp > β okay so this is a lil template class from the Library Functions Manual, and it's literally just a scratch buffer that lives somewhere between "nothing" and "the whole thing", bestie. It's giving β¨internal plumbingβ¨ and we're obsessed.
π¦ SYNOPSIS π¦
#include <memory>
Inherited by __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >. Yes ma'am, it has a glow-up child class π
πΈ Public Types πΈ
typedef pointer iteratorβ the iterator type is literally justpointer, no captypedef value_type * pointerβ pointer = a pointer tovalue_type, iconictypedef ptrdiff_t size_typeβ sizes areptrdiff_taround heretypedef _Tp value_typeβ the value type is_Tp, periodt
π Public Member Functions π
_Temporary_buffer (_ForwardIterator __seed, size_type __original_len)β constructor, makes the buffer, more on it belowsize_type _M_requested_size () constβ Returns the size requested by the constructor; may be >size().iterator begin ()β As per Table mumble.iterator end ()β As per Table mumble.size_type size () constβ As per Table mumble.
π₯ Protected Attributes π₯
struct std::_Temporary_buffer::_Impl _M_implβ the secret lil impl struct, protected obvisize_type _M_original_lenβ the original length, kept safe and sound π«Ά
β¨ Detailed Description β¨
template<typename _ForwardIterator, typename _Tp>
class std::_Temporary_buffer< _ForwardIterator, _Tp >
"This class is used in two places: stl_algo.h and ext/memory, where it is wrapped as the temporary_buffer class. See temporary_buffer docs for more notes.
So yeah bestie, two whole places. And if you want the actual tea, the temporary_buffer docs are where it's at π
π Constructor & Destructor Documentation π
template<typename _ForwardIterator, typename _Tp>
std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer (
_ForwardIterator __seed,
size_type __original_len)
Constructs a temporary buffer of a size somewhere between zero and the given length. Not a promise of exactly __original_len, just... somewhere in that range, fr fr.
Referencesbegin(), andend().
Referenced by __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >::temporary_buffer().
π Member Function Documentation π
π _M_requested_size
template<typename _ForwardIterator, typename _Tp>
size_type
std::_Temporary_buffer< _ForwardIterator, _Tp >::_M_requested_size () const [inline]
Returns the size requested by the constructor; may be >size().
π§ begin
template<typename _ForwardIterator, typename _Tp>
iterator
std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline]
As per Table mumble.
Referenced by _Temporary_buffer().
β end
template<typename _ForwardIterator, typename _Tp>
iterator
std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline]
As per Table mumble.
Referenced by _Temporary_buffer().
π size
template<typename _ForwardIterator, typename _Tp>
size_type
std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline]
As per Table mumble.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a bestie, just Doxygen doing its lil thing π€π
okay that's the whole page!! it came from the Library Functions Manual and it's a libstdc++ situation, so if you see std::_Temp...ator, _Tp >(3) floating around in your terminal that's just the header/footer doing its lil signature move π
mwah, go slay, ily π«Άβ¨
π¦ 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