Files
cppdraft_translate/cppdraft/spanstream/cons.md
2025-10-25 03:02:53 +03:00

1.2 KiB
Raw Blame History

[spanstream.cons]

31 Input/output library [input.output]

31.9 Span-based streams [span.streams]

31.9.6 Class template basic_spanstream [spanstream]

31.9.6.2 Constructors [spanstream.cons]

🔗

explicit basic_spanstream(std::span<charT> s, ios_base::openmode which = ios_base::out | ios_bas::in);

1

#

Effects: Initializes the base class withbasic_iostream<charT, traits>(addressof(sb)) and sb withbasic_spanbuf<charT, traits>(s, which) ([spanbuf.cons]).

🔗

basic_spanstream(basic_spanstream&& rhs);

2

#

Effects: Initializes the base class with std::move(rhs) and sb with std::move(rhs.sb).

Next, basic_iostream<charT, traits>::set_rdbuf(addressof(sb)) is called to install the contained basic_spanbuf.