std::priority_queue<T,Container,Compare>::operator= (3) - Linux Manuals
std::priority_queue<T,Container,Compare>::operator=: std::priority_queue<T,Container,Compare>::operator=
Command to display std::priority_queue<T,Container,Compare>::operator=
manual in Linux: $ man 3 std::priority_queue<T,Container,Compare>::operator=
NAME
std::priority_queue<T,Container,Compare>::operator= - std::priority_queue<T,Container,Compare>::operator=
Synopsis
priority_queue& operator=( const priority_queue& other ); (1)
priority_queue& operator=( priority_queue&& other ); (2) (since C++11)
Replaces the contents of the container adaptor with those of other.
1) Copy assignment operator. Replaces the contents with a copy of the contents of other. Effectively calls c = other.c; comp = other.comp;. (implicitly declared)
2) Move assignment operator. Replaces the contents with those of other using move semantics. Effectively calls c = std::move(other.c); comp = std::move(other.comp); (implicitly declared)
Parameters
other - another container adaptor to be used as source
Return value
*this
Complexity
Equivalent to that of operator= of the underlying container.
See also
constructs the priority_queue
constructor (public member function)
Pages related to std::priority_queue<T,Container,Compare>::operator=
- std::priority_queue<T,Container,Compare>::emplace (3) - std::priority_queue<T,Container,Compare>::emplace
- std::priority_queue<T,Container,Compare>::empty (3) - std::priority_queue<T,Container,Compare>::empty
- std::priority_queue<T,Container,Compare>::pop (3) - std::priority_queue<T,Container,Compare>::pop
- std::priority_queue<T,Container,Compare>::priority_queue (3) - std::priority_queue<T,Container,Compare>::priority_queue
- std::priority_queue<T,Container,Compare>::push (3) - std::priority_queue<T,Container,Compare>::push
- std::priority_queue<T,Container,Compare>::size (3) - std::priority_queue<T,Container,Compare>::size
- std::priority_queue<T,Container,Compare>::swap (3) - std::priority_queue<T,Container,Compare>::swap
- std::priority_queue<T,Container,Compare>::top (3) - std::priority_queue<T,Container,Compare>::top
- std::priority_queue<T,Container,Compare>::~priority_queue (3) - std::priority_queue<T,Container,Compare>::~priority_queue
- std::priority_queue (3) - std::priority_queue
- std::printf,std::fprintf,std::sprintf,std::snprintf (3) - std::printf,std::fprintf,std::sprintf,std::snprintf
- std::prev (3) - std::prev