STD::RAW_STORAGE_ITERATOR(3)

πŸ’– std::raw_storage_iterator< _OutputIterator, _Tp > πŸ’–

okay bestie, we're in the std corner of the library, manual section 3, and this one is libstdc++ coded. pull up a chair, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

std::raw_storage_iterator< _OutputIterator, _Tp > β€” that's the whole name, no notes, periodt. πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull it in:

#include <memory>

and lowkey the most important thing: it inherits from std::iterator< output_iterator_tag, void, void, void, void >. like, that's its whole ancestry, that's the bloodline. πŸ‘‘

πŸŽ€ Public Types πŸŽ€

  • typedef void difference_type β€” distance between iterators is represented as this type. yep, it's void, don't ask, that's just the vibe.
  • typedef output_iterator_tag iterator_category β€” one of the tag types. it's giving "output iterator", iconic.
  • typedef void pointer β€” this type represents a pointer-to-value_type.
  • typedef void reference β€” this type represents a reference-to-value_type.
  • typedef void value_type β€” the type "pointed to" by the iterator.

πŸ¦‹ Public Member Functions πŸ¦‹

  • raw_storage_iterator (_OutputIterator __x)
  • _OutputIterator base () const
  • raw_storage_iterator & operator* ()
  • raw_storage_iterator & operator++ ()
  • raw_storage_iterator operator++ (int)
  • raw_storage_iterator & operator= (_Tp &&__element)
  • raw_storage_iterator & operator= (const _Tp &__element)

πŸ’œ Protected Attributes πŸ’œ

  • _OutputIterator _M_iter

πŸ’… Detailed Description πŸ’…

template<class _OutputIterator, class _Tp>
    class std::raw_storage_iterator< _OutputIterator, _Tp >

This iterator class lets algorithms store their results into uninitialized memory. like, raw memory, untouched, no constructor has ever been near it bestie. it's giving main character energy for real fr fr. ✨


🌈 Member Typedef Documentation 🌈

all of these are inherited from std::iterator< output_iterator_tag, void, void, void, void >, so they come as a little matching set, no cap:

  • typedef void std::iterator< output_iterator_tag, void, void, void, void >::difference_type β€” distance between iterators is represented as this type.
  • typedef output_iterator_tag std::iterator< output_iterator_tag, void, void, void, void >::iterator_category β€” one of the tag types.
  • typedef void std::iterator< output_iterator_tag, void, void, void, void >::pointer β€” this type represents a pointer-to-value_type.
  • typedef void std::iterator< output_iterator_tag, void, void, void, void >::reference β€” this type represents a reference-to-value_type.
  • typedef void std::iterator< output_iterator_tag, void, void, void, void >::value_type β€” the type "pointed to" by the iterator.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. yes, a robot wrote it, and honestly? it ate. πŸ€–πŸ’–


ngl bestie, if you're reading this in a terminal, you're doing amazing. iykyk. 🫢

and that's the whole page β€” sourced from libstdc++, manual section 3, brought to you by Doxygen doing its lil automatic thing. mwah, bye, go write some uninitialized memory. πŸ’‹πŸ¦‹πŸ’€

πŸ“¦ 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