std::basic_...::operator=(3)
π
std::basic_...::operator=(3) π
okay bestie, this one is straight from the C++ Standard Libary and it's all about the move-assignment glow-up for std::basic_ifstream. periodt β¨
π NAME π
std::basic_ifstream::operator= - std::basic_ifstream::operator=
β¨ Synopsis β¨
basic_ifstream& operator=( basic_ifstream&& other ); (since C++11)
Move assigns the file stream other to *this, effectively move-assigning both the std::basic_istream base class and the associated std::basic_filebuf. π«Ά
other is left with no associated file. note that the base class move assignment swaps all stream state variables (except for rdbuf) between *this and other. no cap, that detail matters π
πΈ Parameters πΈ
otherβ file stream to move
π¦ Return value π¦
*this β iconic, returns itself π
π Example π
This section is incomplete.
Reason: no example.
not me finding zero example energy here π it literally says no example, bestie. that's the whole tea.
π See also π
swapβ swaps two file streams(C++11)(public member function)operator=β assigns abasic_filebufobject(C++11)(public member function ofstd::basic_filebuf<CharT,Traits>)operator=β move-assigns from anotherbasic_istream(C++11)(protected member function)
π Category π
* Todo no example
source/version and date, bestie: http://cppreference.com Β· 2024.06.10 Β· page std::basic_...::operator=(3) ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms