__GNU_CXX::_TEMPORARY_BUFFER(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 2 versions
, in arch rolling, centos-stream 10, fedora 44

πŸ’– NAME πŸ’–

__gnu_cxx::_Temporary_buffer< _ForwardIterator, _Tp > β€” bestie, it's a temporary buffer class, and it's literally right there in the __gnu_cxx namespace, section 3 of your Library Functions Manual (libstdc++ edition, iykyk) 🫢


✨ SYNOPSIS ✨

#include <stl_tempbuf.h>

Inherited by __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >. Yes she has a whole daughter class, main character energy runs in the family πŸ‘‘


πŸŽ€ Public Types πŸŽ€

  • typedef pointer iterator β€” the iterator type is a pointer, periodt
  • typedef value_type * pointer β€” pointer to the value type, exactly what it says on the tin
  • typedef ptrdiff_t size_type β€” sizes are ptrdiff_t around here
  • typedef _Tp value_type β€” the value type is _Tp, no notes

🌸 Public Member Functions 🌸

  • _Temporary_buffer (_ForwardIterator __seed, size_type __original_len) β€” the constructor, takes a seed iterator and an original length
  • size_type _M_requested_size () const β€” returns the size requested by the constructor; may be >size() (yes, she can ask for more than she gives, that's the vibe)
  • 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 impl struct, protected, not for your eyes bestie πŸ™ˆ
  • size_type _M_original_len β€” the original length, kept safe

πŸ’œ Detailed Description πŸ’œ

template<typename _ForwardIterator, typename _Tp>
class __gnu_cxx::_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.


πŸ’… 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. Lowkey flexible, highkey iconic β€” a range from nothing to everything, no cap ✨


🌈 Member Function Documentation 🌈

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(). So she remembers what you asked for even if she gave you less β€” obsessed 🫢

template<typename _ForwardIterator, typename _Tp>
iterator
std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline]

As per Table mumble.

template<typename _ForwardIterator, typename _Tp>
iterator
std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline]

As per Table mumble.

template<typename _ForwardIterator, typename _Tp>
size_type
std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline]

As per Table mumble.

"Table mumble" is genuinely what the docs say, bestie. We don't know what Table mumble is. We respect Table mumble. πŸ’€

⭐ Author ⭐

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a vibe, just a build step doing her thing πŸ€–βœ¨


And that's the whole page, babe β€” straight out of the Library Functions Manual for libstdc++, section 3, __gnu_cxx:...ator, _Tp >(3). Doxygen made her, libstdc++ claims her, and she ate. 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
  • centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· 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.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