Skip to content

Commit

Permalink
fix some expression
Browse files Browse the repository at this point in the history
  • Loading branch information
suomesta committed Nov 5, 2023
1 parent 11b32f7 commit 0622e39
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion reference/span/span/begin.md
Expand Up @@ -43,7 +43,7 @@ int main()
std::vector<int> v = {1, 2, 3, 4, 5};
// vの先頭3要素を部分シーケンスとして参照する
std::span<int, 3> s = std::span(v).first(3);
std::span<int> s = std::span(v).first(3);
// (1)
std::for_each(s.begin(), s.end(), [](int x) {
Expand Down
2 changes: 1 addition & 1 deletion reference/span/span/crbegin.md
Expand Up @@ -10,7 +10,7 @@ constexpr const_reverse_iterator crbegin() const noexcept;
```

## 概要
末尾要素の次を指すイテレータを取得する
末尾を指す読み取り専用逆イテレータを取得する


## 戻り値
Expand Down
2 changes: 1 addition & 1 deletion reference/span/span/crend.md
Expand Up @@ -10,7 +10,7 @@ constexpr const_reverse_iterator crend() const noexcept;
```

## 概要
末尾要素の次を指すイテレータを取得する
先頭の前を指す読み取り専用逆イテレータを取得する


## 戻り値
Expand Down
2 changes: 1 addition & 1 deletion reference/span/span/end.md
Expand Up @@ -43,7 +43,7 @@ int main()
std::vector<int> v = {1, 2, 3, 4, 5};
// vの先頭3要素を部分シーケンスとして参照する
std::span<int, 3> s = std::span(v).first(3);
std::span<int> s = std::span(v).first(3);
// (1)
std::for_each(s.begin(), s.end(), [](int x) {
Expand Down
4 changes: 2 additions & 2 deletions reference/span/span/rbegin.md
Expand Up @@ -10,7 +10,7 @@ constexpr reverse_iterator rbegin() const noexcept;
```

## 概要
先頭要素を指す逆順イテレータを取得する
末尾要素を指す逆順イテレータを取得する


## 戻り値
Expand Down Expand Up @@ -42,7 +42,7 @@ int main()
std::vector<int> v = {1, 2, 3, 4, 5};

// vの先頭3要素を部分シーケンスとして参照する
std::span<int, 3> s = std::span(v).first(3);
std::span<int> s = std::span(v).first(3);

// 逆順に出力
std::for_each(s.rbegin(), s.rend(), [](int x) {
Expand Down
4 changes: 2 additions & 2 deletions reference/span/span/rend.md
Expand Up @@ -10,7 +10,7 @@ constexpr reverse_iterator rend() const noexcept;
```

## 概要
末尾要素の次を指す逆順イテレータを取得する
先頭要素の前を指す逆順イテレータを取得する


## 戻り値
Expand Down Expand Up @@ -42,7 +42,7 @@ int main()
std::vector<int> v = {1, 2, 3, 4, 5};

// vの先頭3要素を部分シーケンスとして参照する
std::span<int, 3> s = std::span(v).first(3);
std::span<int> s = std::span(v).first(3);

// 逆順に出力
std::for_each(s.rbegin(), s.rend(), [](int x) {
Expand Down

0 comments on commit 0622e39

Please sign in to comment.