std::priority_queue<T,Container,Compare>::operator=
From cppreference.com
< cpp | container | priority queue
| 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 を構築します。(公開メンバ関数) |