名前空間
変種
操作

std::priority_queue<T,Container,Compare>::operator=

From cppreference.com
 
 
 
 
priority_queue& operator=( const priority_queue& other );
(1) (暗黙的に宣言)
priority_queue& operator=( priority_queue&& other );
(2) (C++11以降)
(暗黙的に宣言)

コンテナアダプタの内容を指定された引数の内容で置き換えます。

1) コピー代入演算子。contentsを`other`のcontentsのコピーで置き換えます。実質的には `c = other.c; comp = other.comp;` を呼び出します。
2) ムーブ代入演算子。ムーブセマンティクスを使用して、contentsを`other`のものと置き換えます。実質的には `c = std::move(other.c); comp = std::move(other.comp);` を呼び出します。

目次

[編集] パラメータ

その他 - ソースとして使用される別のコンテナアダプタ

[編集] 戻り値

*this

[編集] 計算量

1,2) 基底となるコンテナの operator= の計算量に相当します。

[編集]

[編集] 関連項目

priority_queue を構築します。
(公開メンバ関数) [編集]
English 日本語 中文(简体) 中文(繁體)