[#bsl-priority_queue-034-operator_assign-0f]
= xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority&lowbar;queue]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assign to this object the value and comparator of the specified `rhs`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;priorityqueue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/priority_queue-034.adoc[priority&lowbar;queue&lt;VALUE, CONTAINER, COMPARATOR&gt;]&
operator&equals;(xref:bsl/priority_queue-034.adoc[priority&lowbar;queue] const& rhs);
----

== Description

Assign to this object the value and comparator of the specified `rhs` object and return a reference providing modifiable access to this object&period;

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| priority queue to copy&hyphen;assign from
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
