Skip to content

Commit 978a520

Browse files
committed
fix some typo
1 parent 8efd3c9 commit 978a520

File tree

6 files changed

+24
-18
lines changed

6 files changed

+24
-18
lines changed

reference/algorithm/ranges_ends_with.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace std::ranges {
2323
S2 last2,
2424
Pred pred = {},
2525
Proj1 proj1 = {},
26-
Proj2 proj2 = {}); // (1) C++20
26+
Proj2 proj2 = {}); // (1) C++23
2727

2828
template <input_range R1,
2929
input_range R2,
@@ -38,7 +38,7 @@ namespace std::ranges {
3838
R2&& r2,
3939
Pred pred = {},
4040
Proj1 proj1 = {},
41-
Proj2 proj2 = {}); // (2) C++20
41+
Proj2 proj2 = {}); // (2) C++23
4242
}
4343
```
4444
* input_iterator[link /reference/iterator/input_iterator.md]

reference/algorithm/ranges_shift_left.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ namespace std::ranges {
1111
constexpr subrange<I>
1212
shift_left(I first,
1313
S last,
14-
iter_difference_t<I> n); // (1) C++20
14+
iter_difference_t<I> n); // (1) C++23
1515

1616
template <forward_range R>
1717
requires permutable<iterator_t<R>>
1818
constexpr borrowed_subrange_t<R>
1919
shift_left(R&& r,
20-
range_difference_t<R> n); // (2) C++20
20+
range_difference_t<R> n); // (2) C++23
2121
}
2222
```
2323
* permutable[link /reference/iterator/permutable.md]

reference/algorithm/ranges_shift_right.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ namespace std::ranges {
1111
constexpr subrange<I>
1212
shift_right(I first,
1313
S last,
14-
iter_difference_t<I> n); // (1) C++20
14+
iter_difference_t<I> n); // (1) C++23
1515

1616
template <forward_range R>
1717
requires permutable<iterator_t<R>>
1818
constexpr borrowed_subrange_t<R>
1919
shift_right(R&& r,
20-
range_difference_t<R> n); // (2) C++20
20+
range_difference_t<R> n); // (2) C++23
2121
}
2222
```
2323
* permutable[link /reference/iterator/permutable.md]

reference/algorithm/ranges_starts_with.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace std::ranges {
2121
S2 last2,
2222
Pred pred = {},
2323
Proj1 proj1 = {},
24-
Proj2 proj2 = {}); // (1) C++20
24+
Proj2 proj2 = {}); // (1) C++23
2525

2626
template <input_range R1,
2727
input_range R2,
@@ -34,7 +34,7 @@ namespace std::ranges {
3434
R2&& r2,
3535
Pred pred = {},
3636
Proj1 proj1 = {},
37-
Proj2 proj2 = {}); // (2) C++20
37+
Proj2 proj2 = {}); // (2) C++23
3838
}
3939
```
4040
* input_iterator[link /reference/iterator/input_iterator.md]

reference/optional/optional/op_destructor.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,21 @@ struct C {
4242

4343
int main()
4444
{
45-
std::optional<A> a;
46-
std::optional<B> b;
47-
std::optional<C> c;
48-
49-
std::optional<int> opt_int;
50-
} // Aのデストラクタが呼ばれる
51-
// Bのデストラクタは呼ばれない
52-
// Cのデストラクタは呼ばれる
53-
// opt_intのデストラクタは呼ばれない
45+
{
46+
std::optional<A> a = std::make_optional<A>();
47+
std::optional<B> b = std::make_optional<B>();
48+
std::optional<C> c = std::make_optional<C>();
49+
50+
std::optional<int> opt_int = 1;
51+
} // Aのデストラクタが呼ばれる
52+
// Bのデストラクタは呼ばれない
53+
// Cのデストラクタは呼ばれる
54+
// opt_intのデストラクタは呼ばれない
55+
56+
{
57+
std::optional<A> a_null;
58+
} // Aのデストラクタは呼ばれない
59+
}
5460
```
5561
5662
### 出力

reference/tuple/tuple_cat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace std {
4444
4545
4646
## 戻り値
47-
`Tuples...`の全ての`tuple`型の要素型全てを取り出し、`std::`[`forward`](/reference/utility/forward.md)`<T>(x)`して構築される1つの[`tuple`](tuple.md)`オブジェクト。
47+
`Tuples...`の全ての`tuple`型の要素型全てを取り出し、`std::`[`forward`](/reference/utility/forward.md)`<T>(x)`して構築される1つの[`tuple`](tuple.md)オブジェクト。
4848
4949
5050
## 備考

0 commit comments

Comments
 (0)