std::basic_...::operator=(3)
π
std::basic_...::operator=(3) π
okay so bestie, this is the std::basic_ofstream::operator= page from the C++ Standard Libary manual β thatβs literally how itβs spelled up top, iykyk π. Weβre talking about the move-assignment operator for std::basic_ofstream, and itβs lowkey iconic because itβs all about moving file streams around. π¦
π NAME π
std::basic_ofstream::operator= β std::basic_ofstream::operator=
β¨ Synopsis β¨
basic_ofstream& operator=( basic_ofstream&& other ); (since C++11)
Move assigns the file stream other to *this, effectively move-assigning both the std::basic_ostream 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. π
π Parameters π
otherβ file stream to move. π
π¦ Return value π¦
*this. Thatβs it, thatβs the return value, bestie. π
πΈ Example πΈ
This section is incomplete Reason: no example
π₯ 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_ostream.(C++11)(protected member function)
β Category β
Todo no example
Source: http://cppreference.com Β· version/date: 2024.06.10 β bye bestie, go move-assign something cute πβ¨
π¦ 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