cppreference.com
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++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Diagnostics library
Memory management library
Metaprogramming library
(C++11)
General utilities library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Strings library
Text processing library
Numerics library
Date and time library
Input/output library
Filesystem library
(C++17)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Input/output library
I/O manipulators
Print functions
(C++23)
C-style I/O
Buffers
basic_streambuf
basic_filebuf
basic_stringbuf
basic_spanbuf
(C++23)
strstreambuf
(
C++98/26*
)
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
basic_ispanstream
(C++23)
basic_ospanstream
(C++23)
basic_spanstream
(C++23)
istrstream
(
C++98/26*
)
ostrstream
(
C++98/26*
)
strstream
(
C++98/26*
)
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
(C++20)
basic_syncbuf::operator=
(C++20)
basic_syncbuf::~basic_syncbuf
(C++20)
basic_syncbuf::swap
(C++20)
basic_syncbuf::emit
(C++20)
basic_syncbuf::get_wrapped
(C++20)
basic_syncbuf::get_allocator
(C++20)
basic_syncbuf::set_emit_on_sync
(C++20)
Protected member functions
basic_syncbuf::sync
(C++20)
Non-member functions
swap
(std::basic_syncbuf)
(C++20)
[edit]
void
swap
(
basic_syncbuf
&
other
)
;
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