STD::EXPERIMENTAL::OSTREAM_JOINER(3)

✨ NAME ✨

std::experimental::ostream_joiner< _DelimT, _CharT, _Traits > β€” bestie, it's an output iterator that inserts a delimiter between elements πŸ’…

This one lives in the Library Functions Manual, so you already know it's giving official libstdc++ energy. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <iterator>

πŸŽ€ Public Types πŸŽ€

Okay so here's the whole type-squad, no cap:

  • typedef _CharT char_type β€” the character type, iconic as always
  • typedef void difference_type β€” it's void, she doesn't do differences
  • typedef output_iterator_tag iterator_category β€” she's an output iterator, that's her whole brand
  • typedef basic_ostream< _CharT, _Traits > ostream_type β€” the stream type she writes into
  • typedef void pointer β€” void, periodt
  • typedef void reference β€” also void, we love consistency
  • typedef _Traits traits_type β€” the traits, matching the vibe
  • typedef void value_type β€” yeah bestie, void again

πŸ¦‹ Public Member Functions πŸ¦‹

  • ostream_joiner (ostream_type &__os, _DelimT &&__delimiter) β€” constructs from a stream and a movable delimiter, and it's noexcept(is_nothrow_move_constructible_v< _DelimT >) β€” so if your _DelimT can't move without throwing, neither can this. iykyk πŸ’€
  • ostream_joiner (ostream_type &__os, const _DelimT &__delimiter) β€” the copy version, noexcept(is_nothrow_copy_constructible_v< _DelimT >), same energy but for copyable delimiters
  • ostream_joiner & operator* () noexcept β€” dereference, does nothing dramatic, just returns herself. main character energy ✨
  • ostream_joiner & operator++ () noexcept β€” pre-increment, also just vibing, returns herself
  • ostream_joiner & operator++ (int) noexcept β€” post-increment, same deal
  • template<typename _Tp> ostream_joiner & operator= (const _Tp &__value) β€” the actual moment: assign a value and she writes it out. This is where the magic happens, fr fr 🌈

πŸ’– Detailed Description πŸ’–

Here's the whole signature, verbatim, because we do NOT paraphrase code:

template<typename _DelimT, typename _CharT = char, typename _Traits = char_traits<_CharT>>
class std::experimental::ostream_joiner< _DelimT, _CharT, _Traits >
"Output iterator that inserts a delimiter between elements."

That's the whole summary and honestly? She ate. πŸ“ The _DelimT is your delimiter, _CharT defaults to char, and _Traits defaults to char_traits<_CharT>. Lowkey perfect defaults.


🧚 Author 🧚

Generated automatically by Doxygen for libstdc++ from the source code. Not a human author, just a robot doing her little thing πŸ€–βœ¨


Okay bestie, that's the whole page β€” this was pulled from the libstdc++ crew, the manual is std::exper..., _Traits >(3), and the footer says libstdc++ too, so it's the same crew top and bottom. Slay, go write some delimiters. πŸ«ΆπŸ’œ

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