コンテナライブラリは、プログラマが簡単にキュー、リスト、およびスタックのような一般的なデータ構造を実装することができるように、クラステンプレートとアルゴリズムのジェネリックコレクションです。シーケンスコンテナ、連想コンテナと連想コンテナを順不同 - - 3つのコンテナのクラスがあります操作の異なるセットをサポートするように設計されてそれぞれが.
Original:
The Containers library is a generic collection of class templates and algorithms that allow programmers to easily implement common data structures like queues, lists and stacks. There are three classes of containers -- sequence containers, associative containers, and unordered associative containers -- each of which is designed to support a different set of operations.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
コンテナは、その要素に割り当てられ、直接またはイテレータ(同様のプロパティを持つオブジェクトのポインタへの)を介して、それらにアクセスするためのメンバ関数を提供しているストレージスペースを管理します.
Original:
The container manages the storage space that is allocated for its elements and provides member functions to access them, either directly or through iterators (objects with similar properties to pointers).
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
ほとんどのコンテナは、少なくともいくつかの共通のメンバ関数、および共有機能を持っています。どのコンテナが提供する機能ではなく、さまざまなワークロードのために、その効率にも依存している特定のアプリケーションに最適です.
Original:
Most containers have at least several member functions in common, and share functionalities. Which container is the best for the particular application depends not only on the offered functionality, but also on its efficiency for different workloads.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
[編集] シーケンスコンテナ
シーケンスコンテナは、順次アクセスできるデータ構造を実装.
Original:
Sequence containers implement data structures which can be accessed sequentially.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
|
|
静的な連続した配列 Original: static contiguous array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
動的な連続した配列 Original: dynamic contiguous array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
二重終端キュー Original: double-ended queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
片方向リンクリスト Original: singly-linked list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
二重リンクリスト Original: doubly-linked list The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
[編集] 連想コンテナ
連想コンテナはすぐに(
O(log n)複雑さ)を検索することができ、ソートされたデータ構造を実装.
Original:
Associative containers implement sorted data structures that can be quickly searched (O(log n) complexity).
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
|
|
キーでソートする一意のキーのコレクション Original: collection of unique keys, sorted by keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
キーによってソートされたキーと値のペアのコレクションは、キーがユニークである Original: collection of key-value pairs, sorted by keys, keys are unique The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
collection of keys, sorted by keys (クラステンプレート) [edit]
|
|
|
キーによってソートされたキーと値のペアのコレクションです Original: collection of key-value pairs, sorted by keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
[編集] 連想コンテナを順不同
連想コンテナはすぐに(
O(1)償却、
O(n)最悪の場合の複雑さ)を検索することができます(ハッシュ)ソートされていないデータ構造を実装.
Original:
Associative containers implement unsorted (hashed) data structures that can be quickly searched (O(1) amortized, O(n) worst-case complexity).
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
|
|
キーによってハッシュ一意キーのコレクション Original: collection of unique keys, hashed by keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
キーと値のペアのコレクションは、キーによってハッシュ、キーがユニークである Original: collection of key-value pairs, hashed by keys, keys are unique The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
キーによってハッシュキーのコレクション Original: collection of keys, hashed by keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
キーによってハッシュのキーと値のペアのコレクションです Original: collection of key-value pairs, hashed by keys The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
[編集] コンテナアダプタ
コンテナアダプタはシーケンシャルコンテナごとに異なるインターフェースを提供する.
Original:
Container adaptors provide a different interface for sequential containers.
The text has been machine-translated via
Google Translate.
You can help to correct and verify the translation. Click
here for instructions.
|
|
スタック(LIFOのデータ構造)を提供するためにコンテナを適合させます Original: adapts a container to provide stack (LIFO data structure) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
キュー(FIFOデータ構造)を提供するためにコンテナを適合させます Original: adapts a container to provide queue (FIFO data structure) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
|
|
プライオリティキューを提供するために、コンテナを適合させます Original: adapts a container to provide priority queue The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) [edit]
|
[編集] メンバ関数のテーブル
|
- functions present in C++03
|
|
- functions present since C++11
|
|
Sequence containers
|
Associative containers
|
Unordered associative containers
|
Container adaptors
|
Headers
|
<array>
|
<vector>
|
<deque>
|
<forward_list>
|
<list>
|
<set>
|
<map>
|
<unordered_set>
|
<unordered_map>
|
<stack>
|
<queue>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(implicit)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A
|
|
|
|
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
N/A
|
Iterators
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
N/A
|
N/A
|
N/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