Namespaces
Variants

std::swap(std::basic_syncbuf)

From cppreference.com
 
 
Input/output library
I/O manipulators
Print functions (C++23)
C-style I/O
Buffers
(deprecated in C++98)(removed in C++26)
Streams
Abstractions
File I/O
String I/O
Array I/O
(deprecated in C++98)(removed in C++26)
(deprecated in C++98)(removed in C++26)
(deprecated in C++98)(removed in C++26)
Synchronized Output
Types
Error category interface
(C++11)
 
 
template< class CharT, class Traits, class Allocator >
void swap( std::basic_syncbuf<CharT, Traits, Allocator>& lhs,
           std::basic_syncbuf<CharT, Traits, Allocator>& rhs );
(since C++20)

Overloads the std::swap algorithm for std::basic_syncbuf. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).

Parameters

lhs, rhs - std::basic_syncbuf objects whose states to swap

Example

See also

swaps two basic_syncbuf objects
(public member function) [edit]
swaps the values of two objects
(function template) [edit]