std::basic_...m::operator=(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

okay so bestie, welcome to std::basic_...m::operator=(3) from the C++ Standard Libary β€” that's the manual name straight from the header, spelling and all, and we're respecting the lore πŸ’…. This page is all about the move assignment operator for std::basic_istringstream, and it's lowkey a vibe.

✨ NAME ✨

std::basic_istringstream::operator= - std::basic_istringstream::operator=

πŸ“œ Synopsis πŸ“œ

Here's the signature, bestie β€” copy it exactly, no improv:

basic_istringstream& operator=( basic_istringstream&& other );

(since C++11) β€” yes, she's a C++11 girlie ⭐

Move assigns the string stream other to *this, effectively move-assigning both the std::basic_istream base class and the associated std::basic_stringbuf. It's giving inherit the stream, inherit the buffer energy.

Note, bestie: the base class move assignment swaps all stream state variables (except for rdbuf) between *this and other. Not rdbuf β€” she sits this one out πŸ™ˆ.

πŸŽ€ Parameters πŸŽ€

  • other β€” string stream to move from 🫢

🫢 Return value 🫢

*this β€” that's the return value, periodt πŸ’…

🧚 Example 🧚

This section is incomplete.

Reason: no example.

No example yet, bestie 😭 β€” the page is literally telling on itself.

πŸ‘€ See also πŸ‘€

  • swap β€” swaps two string streams. (C++11) (public member function)
  • operator= β€” assigns a basic_stringbuf object. (C++11) (public member function of std::basic_stringbuf<CharT,Traits,Allocator>)
  • operator= β€” move-assigns from another basic_istream. (C++11) (protected member function)

🏷️ Category 🏷️

  • Todo no example

okay that's the whole page! source/version: http://cppreference.com; date: 2024.06.10; title: std::basic_...m::operator=(3). bye bestie, go move-assign something cute πŸ’–

πŸ“¦ where this page comes from