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 alwaystypedef void difference_typeβ it'svoid, she doesn't do differencestypedef output_iterator_tag iterator_categoryβ she's an output iterator, that's her whole brandtypedef basic_ostream< _CharT, _Traits > ostream_typeβ the stream type she writes intotypedef void pointerβvoid, periodttypedef void referenceβ alsovoid, we love consistencytypedef _Traits traits_typeβ the traits, matching the vibetypedef void value_typeβ yeah bestie,voidagain
π¦ Public Member Functions π¦
ostream_joiner (ostream_type &__os, _DelimT &&__delimiter)β constructs from a stream and a movable delimiter, and it'snoexcept(is_nothrow_move_constructible_v< _DelimT >)β so if your_DelimTcan'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 delimitersostream_joiner & operator* () noexceptβ dereference, does nothing dramatic, just returns herself. main character energy β¨ostream_joiner & operator++ () noexceptβ pre-increment, also just vibing, returns herselfostream_joiner & operator++ (int) noexceptβ post-increment, same dealtemplate<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