std::basic_ios<CharT,Traits>::move
From cppreference.com
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_ios
Member functions
State functions
Formatting
Miscellaneous
Protected member functions
basic_ios::move
(C++11)
(C++11)
(C++11)
protected:
void move( basic_ios& other );
(since C++11)
void move( basic_ios& other );
protected:
void move( basic_ios&& other );
(since C++11)
void move( basic_ios&& other );
Replaces the current state with that of other
, except for the associated rdbuf
. other
is in valid, but unspecified state after the call. After the call to this function, rdbuf() returns a null pointer, other.rdbuf() returns the same value as before the call, and other.tie() returns a null pointer.
This member function is protected: it is called by the protected move constructors of the derived stream classes std::basic_ostream and std::basic_istream , which, in turn, are called by the public move constructors of the further derived stream classes such as std::basic_ofstream , which know how to correctly move the associated streambuffer.
[edit] Parameters
other
-
the
basic_ios
object to transfer the state from
[edit] Return value
(none)