STD::_TEMPORARY_BUFFER(3cxx)

πŸ’– NAME πŸ’–

okay bestie, this is the 3cxx manual page for std::_Temporary_buffer< _ForwardIterator, _Tp >. Yes, the whole class-template name is the moment πŸ’…. It's giving β€œtemporary buffer, but make it libstdc++,” and we are reading every detail together β€” no skips, no cap ✨.

🌈 SYNOPSIS 🌈

#include <memory>

Inherited by __gnu_cxx::temporary_buffer< _ForwardIterator, _Tp >.

πŸŽ€ Public Types πŸŽ€

  • typedef pointer iterator
  • typedef value_type * pointer
  • typedef ptrdiff_t size_type
  • typedef _Tp value_type

πŸ’… Public Member Functions πŸ’…

  • _Temporary_buffer (_ForwardIterator __seed, size_type __original_len)
  • iterator begin () β€” As per Table mumble.
  • iterator end () β€” As per Table mumble.
  • size_type requested_size () const β€” Returns the size requested by the constructor; may be >size().
  • size_type size () const β€” As per Table mumble.

🧚 Protected Attributes 🧚

  • pointer _M_buffer
  • size_type _M_len
  • size_type _M_original_len

🌸 Detailed Description 🌸

template<typename _ForwardIterator, typename _Tp>
class std::_Temporary_buffer< _ForwardIterator, _Tp >

The lore, verbatim-ish but in my voice: this class is used in two places, stl_algo.h and ext/memory, where it's wrapped as the temporary_buffer class. For more notes, see the temporary_buffer docs. That's the whole tea πŸ«–βœ¨.

πŸŽ€ 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. It also references std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second β€” that's the exact reference note, bestie 😭.

πŸ’œ Member Function Documentation πŸ’œ

  • template<typename _ForwardIterator , typename _Tp > iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::begin () [inline] β€” As per Table mumble. iconic.
  • template<typename _ForwardIterator , typename _Tp > iterator std::_Temporary_buffer< _ForwardIterator, _Tp >::end () [inline] β€” As per Table mumble. also iconic.
  • template<typename _ForwardIterator , typename _Tp > size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::requested_size () const [inline] β€” Returns the size requested by the constructor; may be >size(). noted, bestie.
  • template<typename _ForwardIterator , typename _Tp > size_type std::_Temporary_buffer< _ForwardIterator, _Tp >::size () const [inline] β€” As per Table mumble. we love a consistent note.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. So yes, Doxygen ate that πŸ’….


okay that's the page, bestie β€” the footer source/version/date sign-off is literally libstd + std::_Temporar...Iterator, _Tp >(3cxx). Mwah, bye πŸ«ΆπŸ’‹βœ¨

πŸ“¦ where this page comes from