Section

std::basic_osyncstream

The class template std::basic_osyncstream is a convenience wrapper for std::basic_syncbuf. It provides a mechanism to synchronize threads writing to the same stream.

# Declarations

template<
class CharT,
class Traits = std::char_traits<CharT>,
class Allocator = std::allocator<CharT>
> class basic_osyncstream : public std::basic_ostream<CharT, Traits>

(since C++20)

# Notes

Feature-test macro Value Std Feature __cpp_lib_syncbuf 201803L (C++20) Synchronized buffered ostream (std::osyncstream, std::syncbuf) and manipulators