Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
985d49c
commit d9d21a6
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# flat_map | ||
* flat_map[meta header] | ||
* cpp23[meta cpp] | ||
|
||
`<flat_map>` ヘッダは、ソート済みキーによる順序付き連想配列を定義する。 | ||
|
||
[`std::map`](/reference/map/map.md)と違ってノードベースの実装ではなく、メモリ連続性のある配列で扱われる (flat=平坦)。 | ||
|
||
`<flat_map>` ヘッダでは、キーの重複を許さない `std::`[`flat_map`](flat_map/flat_map.md.nolink) クラステンプレート、およびキーの重複を許す `std::`[`flat_multimap`](flat_map/flat_multimap.md.nolink) クラステンプレートを提供する。 | ||
|
||
このヘッダでは、以下の標準ヘッダをインクルードする: | ||
|
||
- [`<initializer_list>`](initializer_list.md) | ||
- [`<compare>`](compare.md) | ||
|
||
|
||
| 名前 | 説明 | 対応バージョン | | ||
|----------------------------------------------|--------------------------------------------------------|-------| | ||
| [`flat_map`](flat_map/flat_map.md.nolink) | キーの重複を許さない平坦な順序付き連想コンテナ(class template) | C++23 | | ||
| [`flat_multimap`](flat_map/flat_multimap.md.nolink) | キーの重複を許す平坦な順序付き連想コンテナ(class template) | C++23 | | ||
|
||
|
||
## バージョン | ||
### 言語 | ||
- C++23 | ||
|
||
|
||
## 参照 | ||
- [P0429R3 A Standard `flat_map`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0429r3.pdf) | ||
- C++23で`flat_map`が導入された経緯・動機・設計について記載されている | ||
- [P0429R9 A Standard `flat_map`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p0429r9.pdf) | ||
- C++23で導入された`flat_map`の仕様 |