std::basic_stringstream::operator=
From cppreference.com
< cpp | io | basic stringstream
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Input/output library
Print functions (C++23)
Buffers
(C++23)
(C++98/26*)
(C++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(C++23)
(C++23)
(C++23)
(C++98/26*)
(C++98/26*)
(C++98/26*)
Synchronized Output
(C++20)
Types
Error category interface
(C++11)
(C++11)
std::basic_stringstream
Member functions
basic_stringstream::operator=
(C++11)
String operations
(C++20)
Non-member functions
(C++11)
basic_stringstream& operator=( basic_stringstream&& other );
(since C++11)
Move assigns the string stream other to *this, effectively move-assigning both the std::basic_iostream base class and the associated std::basic_stringbuf .
Note that the base class move assignment swaps all stream state variables (except for rdbuf) between *this and other.
Contents
[edit] Parameters
other
-
string stream to move from
[edit] Return value
*this
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(C++11)
basic_stringbuf
object (public member function of
std::basic_stringbuf<CharT,Traits,Allocator>
) [edit]