std::priori...::operator=(3)
π std::priori...::operator=(3) π
okay so this page lives in the C++ Standard Libary manual (spelling exactly as the page says, bestie, do not @ me π). It's all about std::priority_queue::operator=, aka the assignment operator for your container adaptor era π.
π NAME π
std::priority_queue::operator= β std::priority_queue::operator=. That's the name, and yes it's giving "I said what I said" energy π
.
π¦ Synopsis π¦
priority_queue& operator=( const priority_queue& other ); (1)
(implicitly declared)
priority_queue& operator=( priority_queue&& other ); (2) (since C++11)
(implicitly declared)
It replaces the contents of the container adaptor with the contents of the given argument. Lowkey that's the whole job β¨.
- Copy assignment operator. Replaces the contents with a copy of the contents of
other. Effectively callsc = other.c; comp = other.comp;. - Move assignment operator. Replaces the contents with those of
otherusing move semantics. Effectively callsc = std::move(other.c); comp = std::move(other.comp);.
πΈ Parameters πΈ
otherβ another container adaptor to be used as source π
β¨ Return value β¨
*this β periodt π
π₯ Complexity π₯
1,2) Equivalent to that of operator= of the underlying container.
π Example π
This section is incomplete Reason: no example
π See also π
- constructor β constructs the
priority_queue(public member function)
π Category π
- Todo no example
okay bestie, that's the whole page π source/version: http://cppreference.com Β· date: 2024.06.10 β go forth and assign responsibly π«Ά
π¦ 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