std::priority_queue<T,Container,Compare>:: operator=
From cppreference.net
<
cpp
|
container
|
priority queue
|
priority_queue
&
operator
=
(
const
priority_queue
&
other
)
;
|
(1) | (隐式声明) |
|
priority_queue
&
operator
=
(
priority_queue
&&
other
)
;
|
(2) |
(自 C++11 起)
(隐式声明) |
将容器适配器的内容替换为给定参数的内容。
1)
复制赋值运算符。将内容替换为
other
内容的副本。实际调用
c
=
other.
c
;
comp
=
other.
comp
;
。
2)
移动赋值运算符。通过移动语义将内容替换为
other
的内容。实际调用
c
=
std
::
move
(
other.
c
)
;
comp
=
std
::
move
(
other.
comp
)
;
。
目录 |
参数
| 其他 | - | 用作源的另一个容器适配器 |
返回值
* this
复杂度
1,2)
等价于底层容器的
operator
=
操作。
示例
|
本节内容不完整
原因:缺少示例 |
另请参阅
构造
priority_queue
(公开成员函数) |