Skip to content

Commit 36eefb8

Browse files
committed
flat_map
1 parent 5314234 commit 36eefb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+725
-140
lines changed

reference/flat_map/flat_map/at.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,29 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
mapped_type& at(const key_type& x); // (1) C++23
9+
mapped_type&
10+
at(const key_type& x); // (1) C++23
11+
constexpr mapped_type&
12+
at(const key_type& x); // (1) C++26
1013

1114
template <class K>
12-
mapped_type& at(const K& x); // (2) C++23
15+
mapped_type&
16+
at(const K& x); // (2) C++23
17+
template <class K>
18+
constexpr mapped_type&
19+
at(const K& x); // (2) C++26
1320

14-
const mapped_type& at(const key_type& x) const; // (3) C++23
21+
const mapped_type&
22+
at(const key_type& x) const; // (3) C++23
23+
constexpr const mapped_type&
24+
at(const key_type& x) const; // (3) C++26
1525

1626
template <class K>
17-
const mapped_type& at(const K& x) const; // (4) C++23
27+
const mapped_type&
28+
at(const K& x) const; // (4) C++23
29+
template <class K>
30+
constexpr const mapped_type&
31+
at(const K& x) const; // (4) C++26
1832
```
1933
2034
## 概要
@@ -96,3 +110,7 @@ exception std::out_of_range
96110
## 関連項目
97111
- [`operator[]`](op_at.md)
98112
- [`find()`](find.md)
113+
114+
115+
## 参照
116+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/begin.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
iterator begin() noexcept;
10-
const_iterator begin() const noexcept;
9+
iterator begin() noexcept; // (1) C++23
10+
constexpr iterator begin() noexcept; // (1) C++26
11+
12+
const_iterator begin() const noexcept; // (2) C++23
13+
constexpr const_iterator begin() const noexcept; // (2) C++26
1114
```
1215

1316

@@ -84,3 +87,7 @@ int main()
8487
| [`flat_map::rend`](rend.md) | 先頭の前を指す逆イテレータを取得する |
8588
| [`flat_map::crbegin`](crbegin.md) | 末尾を指す逆constイテレータを取得する |
8689
| [`flat_map::crend`](crend.md) | 先頭の前を指す逆constイテレータを取得する |
90+
91+
92+
## 参照
93+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/cbegin.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
const_iterator cbegin() const noexcept;
9+
const_iterator cbegin() const noexcept; // (1) C++23
10+
constexpr const_iterator cbegin() const noexcept; // (1) C++26
1011
```
1112

1213

@@ -80,3 +81,7 @@ int main()
8081
| [`flat_map::rend`](rend.md) | 先頭の前を指す逆イテレータを取得する |
8182
| [`flat_map::crbegin`](crbegin.md) | 末尾を指す逆constイテレータを取得する |
8283
| [`flat_map::crend`](crend.md) | 先頭の前を指す逆constイテレータを取得する |
84+
85+
86+
## 参照
87+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/cend.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
const_iterator cend() const noexcept;
9+
const_iterator cend() const noexcept; // (1) C++23
10+
constexpr const_iterator cend() const noexcept; // (1) C++26
1011
```
1112

1213
## 概要
@@ -83,3 +84,7 @@ int main()
8384
| [`flat_map::rend`](rend.md) | 先頭の前を指す逆イテレータを取得する |
8485
| [`flat_map::crbegin`](crbegin.md) | 末尾を指す逆constイテレータを取得する |
8586
| [`flat_map::crend`](crend.md) | 先頭の前を指す逆constイテレータを取得する |
87+
88+
89+
## 参照
90+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/clear.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
void clear() noexcept; // (1) C++23
9+
void clear() noexcept; // (1) C++23
10+
constexpr void clear() noexcept; // (1) C++26
1011
```
1112

1213
## 概要
@@ -59,3 +60,7 @@ int main ()
5960
- [Clang](/implementation.md#clang): ??
6061
- [GCC](/implementation.md#gcc): ??
6162
- [Visual C++](/implementation.md#visual_cpp): ??
63+
64+
65+
## 参照
66+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/contains.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
bool contains(const key_type& x) const; // (1) C++23
9+
bool
10+
contains(const key_type& x) const; // (1) C++23
11+
constexpr bool
12+
contains(const key_type& x) const; // (1) C++26
1013

1114
template <class K>
12-
bool contains(const K& x) const; // (2) C++23
15+
bool
16+
contains(const K& x) const; // (2) C++23
17+
template <class K>
18+
constexpr bool
19+
contains(const K& x) const; // (2) C++26
1320
```
1421
1522
@@ -82,3 +89,7 @@ contain
8289
- [Clang](/implementation.md#clang): ??
8390
- [GCC](/implementation.md#gcc): ??
8491
- [Visual C++](/implementation.md#visual_cpp): ??
92+
93+
94+
## 参照
95+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/count.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
size_type count(const key_type& x) const; // (1) C++23
9+
size_type
10+
count(const key_type& x) const; // (1) C++23
11+
constexpr size_type
12+
count(const key_type& x) const; // (1) C++26
1013

1114
template <class K>
12-
size_type count(const K& x) const; // (2) C++23
15+
size_type
16+
count(const K& x) const; // (2) C++23
17+
template <class K>
18+
constexpr size_type
19+
count(const K& x) const; // (2) C++26
1320
```
1421
1522
## 概要
@@ -103,3 +110,7 @@ found
103110

104111
## 関連項目
105112
- [`contains()`](contains.md)
113+
114+
115+
## 参照
116+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/crbegin.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
const_reverse_iterator crbegin() const noexcept;
9+
const_reverse_iterator crbegin() const noexcept; // (1) C++23
10+
constexpr const_reverse_iterator crbegin() const noexcept; // (1) C++26
1011
```
1112

1213
## 概要
@@ -76,3 +77,7 @@ int main()
7677
| [`flat_map::rbegin`](rbegin.md) | 末尾を指す逆イテレータを取得する |
7778
| [`flat_map::rend`](rend.md) | 先頭の前を指す逆イテレータを取得する |
7879
| [`flat_map::crend`](crend.md) | 先頭の前を指す逆constイテレータを取得する |
80+
81+
82+
## 参照
83+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/crend.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
* cpp23[meta cpp]
77

88
```cpp
9-
const_reverse_iterator crend() const noexcept;
9+
const_reverse_iterator crend() const noexcept; // (1) C++23
10+
constexpr const_reverse_iterator crend() const noexcept; // (1) C++26
1011
```
1112

1213

@@ -74,3 +75,7 @@ int main()
7475
| [`flat_map::rbegin`](rbegin.md) | 末尾を指す逆イテレータを取得する |
7576
| [`flat_map::rend`](rend.md) | 先頭の前を指す逆イテレータを取得する |
7677
| [`flat_map::crbegin`](crbegin.md) | 末尾を指す逆constイテレータを取得する |
78+
79+
80+
## 参照
81+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/flat_map/flat_map/emplace.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
```cpp
99
template <class... Args>
10-
pair<iterator, bool> emplace(Args&&... args);
10+
pair<iterator, bool>
11+
emplace(Args&&... args); // (1) C++23
12+
template <class... Args>
13+
constexpr pair<iterator, bool>
14+
emplace(Args&&... args); // (1) C++26
1115
```
1216
1317
## 概要
@@ -141,3 +145,7 @@ CCC : (1, 2)
141145
| [`flat_map::insert_or_assign`](insert_or_assign.md) | 要素を挿入、あるいは代入する |
142146
| [`flat_map::emplace_hint`](emplace_hint.md) | ヒントを使って要素を直接構築する |
143147
| [`flat_map::try_emplace`](try_emplace.md) | キーが存在しない場合のみ要素を直接構築する |
148+
149+
150+
## 参照
151+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

0 commit comments

Comments
 (0)