Skip to content

Commit 003bb89

Browse files
committed
全体: オーバーロード番号の列挙を「(1),(2)」になっているものから「(1), (2)」の形式に変更 #1451
https://gist.github.com/faithandbrave/40cf4559a6a48578788e860ee55ad08c
1 parent 9bcd535 commit 003bb89

File tree

13 files changed

+27
-27
lines changed

13 files changed

+27
-27
lines changed

reference/cmath/abs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ namespace std {
4545
## 戻り値
4646
引数 `x` の絶対値を返す。
4747
48-
- (1),(2),(3),(4) : `x` が `±∞` だった場合 `+∞` を返す。
48+
- (1), (2), (3), (4) : `x` が `±∞` だった場合 `+∞` を返す。
4949
5050
5151
## 備考
5252
- $$ f(x) = | x | $$
53-
- 任意の整数型に対するオーバーロード(5)は C++11 で追加されたが、[一部の符号なし整数型に対して問題を引き起こす](http://wg21.cmeerw.net/lwg/issue2192)ことから C++17 で削除され、符号付き整数型に対するオーバーロード(6),(7),(8)が追加された
53+
- 任意の整数型に対するオーバーロード(5)は C++11 で追加されたが、[一部の符号なし整数型に対して問題を引き起こす](http://wg21.cmeerw.net/lwg/issue2192)ことから C++17 で削除され、符号付き整数型に対するオーバーロード(6), (7), (8)が追加された
5454
- C++23では、(1)、(2)、(3)が(4)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された
5555
5656

reference/condition_variable/condition_variable_any/wait.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ return pred();
6565

6666

6767
## 戻り値
68-
- (1),(2) : なし
68+
- (1), (2) : なし
6969
- (3) : 停止要求の有無によらず、`pred()`の結果が返る。
7070

7171

reference/cstdlib/abs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace std {
5959
## 戻り値
6060
引数 `j` の絶対値を返す。
6161
62-
- (4),(5),(6),(7) : `j` が `±∞` だった場合 `+∞` を返す。
62+
- (4), (5), (6), (7) : `j` が `±∞` だった場合 `+∞` を返す。
6363
6464
6565
## 備考

reference/expected/expected.void/op_constructor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int main()
198198
// ムーブ後のstd::unique_ptr型はnullptrが保証される
199199
}
200200
201-
// (6),(7) エラー値の変換コピー/ムーブ構築
201+
// (6), (7) エラー値の変換コピー/ムーブ構築
202202
{
203203
std::unexpected<IntPair> src1{std::in_place, 1, 2};
204204
std::expected<void, IntTuple> dst1 = src1;
@@ -217,7 +217,7 @@ int main()
217217
assert(x1.has_value());
218218
}
219219
220-
// (9),(10) 引数リストからエラー値を直接構築
220+
// (9), (10) 引数リストからエラー値を直接構築
221221
{
222222
std::expected<void, ComplexType> x1{std::unexpect, "C++", 1};
223223
assert(not x1.has_value());

reference/expected/expected/op_constructor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ int main()
255255
assert(*dst2.value() == 42);
256256
}
257257

258-
// (7),(8) エラー値の変換コピー/ムーブ構築
258+
// (7), (8) エラー値の変換コピー/ムーブ構築
259259
{
260260
std::unexpected<IntPair> src1{std::in_place, 1, 2};
261261
std::expected<int, IntTuple> dst1 = src1;
@@ -268,7 +268,7 @@ int main()
268268
assert(*dst2.error() == 42);
269269
}
270270

271-
// (9),(10) 引数リストから正常値を直接構築
271+
// (9), (10) 引数リストから正常値を直接構築
272272
{
273273
std::expected<ComplexType, int> x1{std::in_place, "C++", 1};
274274
assert(x1.has_value());
@@ -281,7 +281,7 @@ int main()
281281
assert((x2.value().seq == std::vector<int>{5, 6, 7, 8}));
282282
}
283283

284-
// (11),(12) 引数リストからエラー値を直接構築
284+
// (11), (12) 引数リストからエラー値を直接構築
285285
{
286286
std::expected<int, ComplexType> x1{std::unexpect, "Hello!", 4};
287287
assert(not x1.has_value());

reference/expected/unexpected/op_constructor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int main()
109109
// ムーブ後のstd::unique_ptr型はnullptrが保証される
110110
}
111111
112-
// (4),(5) 引数リストから直接構築
112+
// (4), (5) 引数リストから直接構築
113113
{
114114
std::unexpected<ComplexType> x1{std::in_place, "C++", 1};
115115
assert(x1.error().data == "C");

reference/format/format_to.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ format_to(back_inserter(buffer), "The answer is {}.", 42);
5151

5252
`Out`は以下の制約を満たす。
5353

54-
* (1),(3): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const char&>`
55-
* (2),(4): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const wchar_t&>`
54+
* (1), (3): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const char&>`
55+
* (2), (4): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const wchar_t&>`
5656

5757
## 事前条件
5858

5959
`Out`は以下のコンセプトのモデルである。
6060

61-
* (1),(3): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const char&>`
62-
* (2),(4): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const wchar_t&>`
61+
* (1), (3): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const char&>`
62+
* (2), (4): [`output_iterator`](/reference/iterator/output_iterator.md)`<Out, const wchar_t&>`
6363

6464
## 効果
6565

reference/format/vformat_to.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ namespace std {
4242
4343
`Out`は以下の制約を満たす。
4444
45-
* (1),(3): `OutputIterator<const char&>`
46-
* (2),(4): `OutputIterator<const wchar_t&>`
45+
* (1), (3): `OutputIterator<const char&>`
46+
* (2), (4): `OutputIterator<const wchar_t&>`
4747
4848
## 事前条件
4949
5050
`out`は以下の制約を満たす型の有効なオブジェクトである。
5151
52-
* (1),(3): `OutputIterator<const char&>`
53-
* (2),(4): `OutputIterator<const wchar_t&>`
52+
* (1), (3): `OutputIterator<const char&>`
53+
* (2), (4): `OutputIterator<const wchar_t&>`
5454
5555
## 効果
5656

reference/forward_list/forward_list/splice_after.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ void splice_after(const_iterator position, forward_list&& x,
3535
3636
3737
## 効果
38-
- (1),(2) : `position`の指す要素の後ろに、`x`の全ての要素を移動する
39-
- (3),(4) : `position`の指す要素の後ろに、`x`の要素のうち`i`の次の要素を移動する
40-
- (5),(6) : `position`の指す要素の後ろに、`x`の要素のうち`(first, last)`の範囲を移動する
38+
- (1), (2) : `position`の指す要素の後ろに、`x`の全ての要素を移動する
39+
- (3), (4) : `position`の指す要素の後ろに、`x`の要素のうち`i`の次の要素を移動する
40+
- (5), (6) : `position`の指す要素の後ろに、`x`の要素のうち`(first, last)`の範囲を移動する
4141
4242
4343
## 戻り値

reference/generator/generator/promise_type/yield_value.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ return yield_value(ranges::elements_of(nested(
9090
9191
9292
## 例外
93-
- (1),(3),(4) : 投げない。
93+
- (1), (3), (4) : 投げない。
9494
- (2) : 格納されるオブジェクトの初期化によって送出された例外。
9595
9696

reference/queue/queue/op_constructor.md

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

77
```cpp
88
// C++03まで
9-
explicit queue(const Container& other = Container()); // (1),(2)
9+
explicit queue(const Container& other = Container()); // (1), (2)
1010

1111
// C++11以降 C++17まで
1212
explicit queue(const Container& other); // (2)
13-
explicit queue(Container&& other = Container()); // (1),(3)
13+
explicit queue(Container&& other = Container()); // (1), (3)
1414

1515
// C++20以降
1616
queue() : queue(Container()) {} // (1)

reference/stack/stack/op_constructor.md

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

77
```cpp
88
// C++03まで
9-
explicit stack(const Container& cont = Container()); // (1),(2)
9+
explicit stack(const Container& cont = Container()); // (1), (2)
1010

1111
// C++11以降 C++17まで
1212
explicit stack(const Container& cont); // (2)
13-
explicit stack(Container&& cont = Container()); // (1),(3)
13+
explicit stack(Container&& cont = Container()); // (1), (3)
1414

1515
// C++20以降
1616
stack() : stack(Container()) {} // (1)

reference/string/basic_string/op_constructor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,4 +268,4 @@ s14 : Hello
268268
- [P2166R1 A Proposal to Prohibit std::basic_string and std::basic_string_view construction from nullptr.](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2166r1.html)
269269
- C++23での(16)`nullptr_t`をとるコンストラクタのdelete宣言追加
270270
- [P2438R2 `std::string::substr() &&`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2438r2.html)
271-
- C++23での(17),(18)`basic_string&&`と範囲指定をとるコンストラクタ追加
271+
- C++23での(17), (18)`basic_string&&`と範囲指定をとるコンストラクタ追加

0 commit comments

Comments
 (0)