Skip to content

Commit 5314234

Browse files
committed
deque
1 parent c3a3a49 commit 5314234

Some content is hidden

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

47 files changed

+439
-128
lines changed

reference/deque/deque/append_range.md

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

88
```cpp
99
template <container-compatible-range<T> R>
10-
void append_range(R&& rg); // C++23
10+
void
11+
append_range(R&& rg); // (1) C++23
12+
template <container-compatible-range<T> R>
13+
constexpr void
14+
append_range(R&& rg); // (1) C++26
1115
```
1216
1317
## 概要
@@ -63,3 +67,7 @@ int main()
6367
|-------------------------------------------|----------------------|
6468
| [`push_back`](push_back.md) | 末尾に要素を追加する |
6569
| [`emplace_back`](emplace_back.md) | 末尾に要素を直接構築で追加する |
70+
71+
72+
## 参照
73+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/assign.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,21 @@
66

77
```cpp
88
template <class InputIterator>
9-
void assign(InputIterator first, InputIterator last); // (1)
10-
11-
void assign(size_type n, const T& t); // (2)
12-
13-
void assign(initializer_list<T> init); // (3) C++11
9+
void
10+
assign(InputIterator first, InputIterator last); // (1) C++03
11+
template <class InputIterator>
12+
constexpr void
13+
assign(InputIterator first, InputIterator last); // (1) C++26
14+
15+
void
16+
assign(size_type n, const T& t); // (2) C++03
17+
constexpr void
18+
assign(size_type n, const T& t); // (2) C++26
19+
20+
void
21+
assign(initializer_list<T> init); // (3) C++11
22+
constexpr void
23+
assign(initializer_list<T> init); // (3) C++26
1424
```
1525
* initializer_list[link /reference/initializer_list/initializer_list.md]
1626
@@ -73,3 +83,4 @@ c3 : {1 2 3 }
7383

7484
## 参照
7585
- [N2679 Initializer Lists for Standard Containers(Revision 1)](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2679.pdf)
86+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/assign_range.md

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

88
```cpp
99
template <container-compatible-range<T> R>
10-
void assign_range(R&& rg); // C++23
10+
void
11+
assign_range(R&& rg); // (1) C++23
12+
template <container-compatible-range<T> R>
13+
constexpr void
14+
assign_range(R&& rg); // (1) C++26
1115
```
1216
1317
## 概要
@@ -62,3 +66,7 @@ int main()
6266
| 名前 | 説明 |
6367
|-------------------------------------------|----------------------|
6468
| [`assign`](assign.md) | コンテナに値を代入する |
69+
70+
71+
## 参照
72+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/at.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
* function[meta id-type]
66

77
```cpp
8-
reference at(size_type n);
9-
const_reference at(size_type n) const;
8+
reference
9+
at(size_type n); // (1) C++03
10+
constexpr
11+
reference at(size_type n); // (1) C++26
12+
13+
const_reference
14+
at(size_type n) const; // (2) C++03
15+
constexpr const_reference
16+
at(size_type n) const; // (2) C++26
1017
```
1118
1219
## 概要
@@ -68,3 +75,7 @@ out of range!
6875
| 名前 | 説明 |
6976
|----------------------------|----------------------------------|
7077
| [`operator[]`](op_at.md) | 任意位置の要素への参照を取得する |
78+
79+
80+
## 参照
81+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/back.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
* function[meta id-type]
66

77
```cpp
8-
reference back();
9-
const_reference back() const;
8+
reference
9+
back(); // (1) C++03
10+
constexpr reference
11+
back(); // (1) C++26
12+
13+
const_reference
14+
back() const; // (2) C++03
15+
constexpr const_reference
16+
back() const; // (2) C++26
1017
```
1118

1219
## 概要
@@ -53,3 +60,7 @@ int main()
5360
| [`front`](front.md) | 先頭要素への参照を取得する |
5461
| [`push_back`](push_back.md) | 末尾に要素を追加する |
5562
| [`pop_back`](pop_back.md) | 末尾要素を削除する |
63+
64+
65+
## 参照
66+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/begin.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
* function[meta id-type]
66

77
```cpp
8-
iterator begin(); // (1) C++03
9-
iterator begin() noexcept; // (1) C++11
8+
iterator begin(); // (1) C++03
9+
iterator begin() noexcept; // (1) C++11
10+
constexpr iterator begin() noexcept; // (1) C++26
1011

11-
const_iterator begin() const; // (2) C++03
12-
const_iterator begin() const noexcept; // (2) C++11
12+
const_iterator begin() const; // (2) C++03
13+
const_iterator begin() const noexcept; // (2) C++11
14+
constexpr const_iterator begin() const noexcept; // (2) C++26
1315
```
1416

1517
## 概要
@@ -63,3 +65,7 @@ int main()
6365
| [`cend`](cend.md) | 末尾要素を指す読み取り専用イテレータを取得する |
6466
| [`rbegin`](rbegin.md) | 末尾要素を指す逆イテレータを取得する |
6567
| [`rend`](rend.md) | 先頭要素の前を指す逆イテレータを取得する |
68+
69+
70+
## 参照
71+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/cbegin.md

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

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

1213
## 概要
@@ -67,3 +68,4 @@ int main()
6768
- [Visual C++](/implementation.md#visual_cpp): 2010 [mark verified], 2012 [mark verified], 2013 [mark verified]
6869

6970
## 参照
71+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/cend.md

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

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

1213
## 概要
@@ -71,3 +72,4 @@ int main()
7172

7273

7374
## 参照
75+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/clear.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
* function[meta id-type]
66

77
```cpp
8-
void clear(); // C++03
9-
void clear() noexcept; // C++11
8+
void clear(); // (1) C++03
9+
void clear() noexcept; // (1) C++11
10+
constexpr void clear() noexcept; // (1) C++26
1011
```
1112

1213
## 概要
@@ -58,11 +59,6 @@ int main()
5859
```
5960
```
6061

61-
## 参照
62-
- [LWG Issue 2231. DR 704 removes complexity guarantee for `clear()`](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2231)
63-
- C++03までこの関数の効果は`erase(begin(), end())`だったため、それによって線形時間の計算量が保証されていたが、C++11で効果の表記が変わったために、保証がなくなってしまっていた。C++14であらためて保証を追加。
64-
65-
6662
## 関連項目
6763

6864
| 名前 | 説明 |
@@ -72,3 +68,9 @@ int main()
7268
| [`pop_back`](pop_back.md) | 末尾要素を削除する |
7369
| [`pop_front`](pop_front.md) | 先頭要素を削除する |
7470
| [`empty`](empty.md) | コンテナが空であるかどうかを調べる |
71+
72+
73+
## 参照
74+
- [LWG Issue 2231. DR 704 removes complexity guarantee for `clear()`](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2231)
75+
- C++03までこの関数の効果は`erase(begin(), end())`だったため、それによって線形時間の計算量が保証されていたが、C++11で効果の表記が変わったために、保証がなくなってしまっていた。C++14であらためて保証を追加。
76+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

reference/deque/deque/crbegin.md

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

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

1213
## 概要
@@ -67,3 +68,4 @@ int main()
6768

6869

6970
## 参照
71+
- [P3372R3 constexpr containers and adaptors](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3372r3.html)

0 commit comments

Comments
 (0)