std::queue::operator=(3)
π std::queue::operator= π
Okay so this is the C++ Standard Libary manual page for std::queue::operator=, and bestie, we are absolutely getting into assignment operator territory π«Άβ¨
β¨ NAME β¨
std::queue::operator= β literally std::queue::operator= π
πΈ Synopsis πΈ
queue& operator=( const queue& other ); (1) (implicitly declared)
queue& operator=( queue&& other ); (2) (since C++11)
(implicitly declared)
Replaces the contents of the container adaptor with the contents of the given argument. No cap π
(1)Copy assignment operator β replaces the contents with a copy of the contents ofother. Effectively callsc = other.c;.(2)Move assignment operator β replaces the contents with those ofotherusing move semantics. Effectively callsc = std::move(other.c);.
π Parameters π
otherβ another container adaptor to be used as source π
π¦ Return value π¦
*this β that's the whole mood β¨
π Complexity π
(1) and (2) are both equivalent to that of operator= of the underlying container. Slay, but keep it accurate π
π Example π
π This section is incomplete Reason: no example
π See also π
- constructor β constructs the queue (public member function) π
π·οΈ Category π·οΈ
Todo no exampleβ literally the category tag, bestie π
Big cute sign-off time π this page comes from http://cppreference.com, dated 2024.06.10, and tagged std::queue::operator=(3) β source/version/date energy, periodt π
π¦ 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