std::basic_syncbuf<CharT,Traits,Allocator>::operator= (3) - Linux Manuals
std::basic_syncbuf<CharT,Traits,Allocator>::operator=: std::basic_syncbuf<CharT,Traits,Allocator>::operator=
Command to display std::basic_syncbuf<CharT,Traits,Allocator>::operator=
manual in Linux: $ man 3 std::basic_syncbuf<CharT,Traits,Allocator>::operator=
NAME
std::basic_syncbuf<CharT,Traits,Allocator>::operator= - std::basic_syncbuf<CharT,Traits,Allocator>::operator=
Synopsis
basic_syncbuf& operator=(basic_syncbuf&& other);
First, calls emit() to transmit all pending output (and delayed flush, if any) to the wrapped stream.
Then performs move-assignment by moving all contents from other, including the temporary storage, the wrapped stream pointer, policy, and all other state (such as the mutex pointer). After move, other is not associated with a stream, and other.get_wrapped()==nullptr. The put area member pointers of the base class std::basic_streambuf of other are guaranteed to be null. Destroying a moved-from other will not produce any output.
If std::allocator_traits<Allocator>::propagate_on_container_move_assignment::value is false, then the allocator is unchanged. Otherwise, after move-assignment, get_allocator() equals other.get_allocator().
Parameters
other - another std::basic_syncbuf to move from
Return value
*this
Example
This section is incomplete
Reason: no example
See also
assigns a basic_osyncstream
operator= (public member function of std::basic_osyncstream<CharT,Traits,Allocator>)
constructs a basic_syncbuf object
constructor (public member function)
atomically transmits the entire internal buffer to the wrapped streambuf
emit (public member function)
swaps two basic_syncbuf objects
swap (public member function)
Pages related to std::basic_syncbuf<CharT,Traits,Allocator>::operator=
- std::basic_syncbuf<CharT,Traits,Allocator>::basic_syncbuf (3) - std::basic_syncbuf<CharT,Traits,Allocator>::basic_syncbuf
- std::basic_syncbuf<CharT,Traits,Allocator>::emit (3) - std::basic_syncbuf<CharT,Traits,Allocator>::emit
- std::basic_syncbuf<CharT,Traits,Allocator>::get_allocator (3) - std::basic_syncbuf<CharT,Traits,Allocator>::get_allocator
- std::basic_syncbuf<CharT,Traits,Allocator>::get_wrapped (3) - std::basic_syncbuf<CharT,Traits,Allocator>::get_wrapped
- std::basic_syncbuf<CharT,Traits,Allocator>::set_emit_on_sync (3) - std::basic_syncbuf<CharT,Traits,Allocator>::set_emit_on_sync
- std::basic_syncbuf<CharT,Traits,Allocator>::swap (3) - std::basic_syncbuf<CharT,Traits,Allocator>::swap
- std::basic_syncbuf<CharT,Traits,Allocator>::sync (3) - std::basic_syncbuf<CharT,Traits,Allocator>::sync
- std::basic_syncbuf<CharT,Traits,Allocator>::~basic_syncbuf (3) - std::basic_syncbuf<CharT,Traits,Allocator>::~basic_syncbuf
- std::basic_syncbuf (3) - std::basic_syncbuf
- std::basic_streambuf (3) - std::basic_streambuf
- std::basic_streambuf<CharT,Traits>::basic_streambuf (3) - std::basic_streambuf<CharT,Traits>::basic_streambuf
- std::basic_streambuf<CharT,Traits>::eback,gptr,egptr (3) - std::basic_streambuf<CharT,Traits>::eback,gptr,egptr
- std::basic_streambuf<CharT,Traits>::gbump (3) - std::basic_streambuf<CharT,Traits>::gbump
- std::basic_streambuf<CharT,Traits>::getloc (3) - std::basic_streambuf<CharT,Traits>::getloc
- std::basic_streambuf<CharT,Traits>::in_avail (3) - std::basic_streambuf<CharT,Traits>::in_avail
- std::basic_streambuf<CharT,Traits>::operator= (3) - std::basic_streambuf<CharT,Traits>::operator=