std::experi...tream_joiner(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::experi...tream_joiner(3) πŸ’…

okay bestie, welcome to std::experi...tream_joiner(3) from the C++ Standard Libary manual β€” yes, β€œLibary,” exactly, iykyk 😌. This page is all about the constructor for std::experimental::ostream_joiner, library fundamentals TS v2 edition, and it’s giving very specific member-initialization energy 🫢.


πŸ’– NAME πŸ’–

  • std::experimental::ostream_joiner::ostream_joiner β€” std::experimental::ostream_joiner::ostream_joiner

like… it’s the constructor page for the constructor. iconic, honestly πŸ‘‘


✨ Synopsis ✨

here are the signatures, kept exactly as they are because we do not mess with code in this house πŸ’…:

ostream_joiner( ostream_type& stream, const DelimT& (1) (library
fundamentals TS v2)
delimiter );
ostream_joiner( ostream_type& stream, DelimT&&      (2) (library
fundamentals TS v2)
delimiter );
ostream_joiner( const ostream_joiner& other ) =     (3) (library
fundamentals TS v2)
default;                                                (implicitly
declared)
ostream_joiner( ostream_joiner&& other ) = default; (4) (library
fundamentals TS v2)
                                                        (implicitly
declared)
  1. Constructs the iterator with the private ostream_type* member initialized with std::addressof(stream), the private delimiter member initialized with delimiter, and the private "first element" flag set to true.
  2. Constructs the iterator with the private ostream_type* member initialized with std::addressof(stream), the private delimiter member initialized with std::move(delimiter), and the private "first element" flag set to true.

3,4. Implicitly declared copy/move constructor that copy/move constructs the private stream pointer, delimiter, and "first element" flag members.


🌸 Parameters 🌸

  • stream β€” the output stream to be accessed by this iterator
  • delimiter β€” the delimiter to be inserted into the stream in between two outputs
  • other β€” the ostream_joiner object from which this object is to be copy- or move-constructed

πŸŽ€ Example πŸŽ€

This section is incomplete Reason: no example

literally no example bestie 😭 the page says it right there.


πŸ—‚οΈ Category πŸ—‚οΈ

  • Todo no example

source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::experi...tream_joiner(3) β€” byeee bestie, go read those constructor docs and slay responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from