cppreference.com
Search
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::basic_syncbuf<CharT,Traits,Allocator>::
swap
From cppreference.com
<
cpp
|
io
|
basic syncbuf
C++
Language
Standard Library Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
[edit]
Input/output library
I/O manipulators
C-style I/O
Buffers
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf
(deprecated in C++98)
basic_syncbuf
(C++20)
Streams
Abstractions
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
File I/O
basic_ifstream
basic_ofstream
basic_fstream
String I/O
basic_istringstream
basic_ostringstream
basic_stringstream
Array I/O
istrstream
(deprecated in C++98)
ostrstream
(deprecated in C++98)
strstream
(deprecated in C++98)
Synchronized Output
basic_osyncstream
(C++20)
Types
streamoff
streamsize
fpos
Error category interface
iostream_category
(C++11)
io_errc
(C++11)
[edit]
std::basic_syncbuf
Public member functions
basic_syncbuf::basic_syncbuf
basic_syncbuf::operator=
basic_syncbuf::~basic_syncbuf
basic_syncbuf::swap
basic_syncbuf::emit
basic_syncbuf::get_wrapped
basic_syncbuf::get_allocator
basic_syncbuf::set_emit_on_sync
Protected member functions
basic_syncbuf::sync
Non-member functions
swap
(std::basic_syncbuf)
[edit]
void
swap
(
basic_syncbuf
&
other
)
noexcept
;
Exchanges the contents of the sync stream buffer with those of
other
.
[
edit
]
Parameters
other
-
sync stream buffer to exchange contents with
[
edit
]
Return value
(none)
[
edit
]
Example
This section is incomplete
Reason: no example
Category
:
Todo no example