Skip to content

Commit 362d095

Browse files
committed
pairwise の解説を追加
1 parent 075f072 commit 362d095

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reference/ranges/adjacent_view.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ namespace std::ranges {
1111
class adjacent_view : public view_interface<adjacent_view<V, N>> {…… }; // (1)
1212

1313
namespace views {
14+
template<std::size_t N>
1415
inline constexpr /*unspecified*/ adjacent = /*unspecified*/; // (2)
16+
17+
inline constexpr auto pairwise = adjacent<2>; // (3)
1518
}
1619
}
1720
```
@@ -25,7 +28,8 @@ namespace std::ranges {
2528
`N` が元となるRangeの要素数より大きい場合、この[`view`](view.md)は空である。
2629
2730
- (1): `adjacent_view`のクラス定義
28-
- (2): `adjacent_view`を生成するカスタマイゼーションポイントオブジェクト
31+
- (2): `adjacent_view`を生成するカスタマイゼーションポイントオブジェクト(変数テンプレート)
32+
- (3): `adjacent<2>` の別名
2933
3034
### Rangeコンセプト
3135

0 commit comments

Comments
 (0)