Files
2025-10-25 03:02:53 +03:00

2.0 KiB
Raw Permalink Blame History

[syncstream.osyncstream.cons]

31 Input/output library [input.output]

31.11 Synchronized output streams [syncstream]

31.11.3 Class template basic_osyncstream [syncstream.osyncstream]

31.11.3.2 Construction and destruction [syncstream.osyncstream.cons]

🔗

basic_osyncstream(streambuf_type* buf, const Allocator& allocator);

1

#

Effects: Initializes sb from buf and allocator.

Initializes the base class with basic_ostream<charT, traits>(addressof(sb)).

2

#

[Note 1:

The member functions of the provided stream buffer can be called from emit() while a lock is held, which might result in a deadlock if used incautiously.

— end note]

3

#

Postconditions: get_wrapped() == buf is true.

🔗

basic_osyncstream(basic_osyncstream&& other) noexcept;

4

#

Effects: Move constructs the base class and sb from the corresponding subobjects of other, and calls basic_ostream<charT, traits>::set_rdbuf(addressof(sb)).

5

#

Postconditions: The value returned by get_wrapped() is the value returned by other.get_wrapped() prior to calling this constructor.

nullptr == other.get_wrapped() is true.