std::priority_queue
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <queue>
|
||
template< class T, |
||
プライオリティキューは、対数挿入を犠牲にして一定時間の最大値(または最小値、
Compare
に応じて)の抽出を可能にするコンテナです。 priority_queue
と協力して誤ってヒープを無効にすることができないという利点と、いくつかのランダム·アクセス·コンテナ内ヒープの管理に似ています.Original:
Priority queue is a container that allows for constant time maximum (or minimum, depending on
Compare
) extraction at the expense of logarithmic insertion. Working with a priority_queue
is similar to managing a ヒープ in some random access container, with the benefit of not being able to accidentally invalidate the heap.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] メンバータイプ
メンバー·タイプ
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
container_type
|
Container
|
value_type
|
Container::value_type
|
size_type
|
Container::size_type
|
reference
|
Container::reference
|
const_reference
|
Container::const_reference
|
[編集] メンバ関数
priority_queue を構築します Original: constructs the priority_queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
destructs the priority_queue (パブリックメンバ関数) | |
コンテナアダプタに値を割り当てます Original: assigns values to the container adaptor The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Element access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
先頭の要素にアクセスします Original: access the top element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Capacity The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
基になるコンテナが空であるかどうかをチェックします Original: checks whether the underlying container is empty The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
要素数を返します Original: returns the number of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
inserts element and sorts the underlying container (パブリックメンバ関数) | |
(C++11) |
constructs element in-place and sorts the underlying container (パブリックメンバ関数) |
最初の要素を削除します Original: removes the first element The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
コンテナの内容をスワップします (パブリックメンバ関数) | |
Original: Member objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
Container c |
基になるコンテナ Original: the underlying container The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバオブジェクト) |
Compare comp |
比較関数オブジェクト Original: the comparison function object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protectedメンバオブジェクト) |
[編集] 非メンバ関数
特殊化されたstd::swapアルゴリズム (関数テンプレート) |
[編集] ヘルパークラス
std::uses_allocator型形質を専門としています Original: specializes the std::uses_allocator type trait The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |