std::experi...tream_joiner(3)
π 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)
- Constructs the iterator with the private
ostream_type*member initialized withstd::addressof(stream), the privatedelimitermember initialized withdelimiter, and the private"first element"flag set totrue. - Constructs the iterator with the private
ostream_type*member initialized withstd::addressof(stream), the privatedelimitermember initialized withstd::move(delimiter), and the private"first element"flag set totrue.
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 iteratordelimiterβ the delimiter to be inserted into the stream in between two outputsotherβ theostream_joinerobject 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms