Skip to content

Commit a32a17b

Browse files
authored
Merge pull request #29 from atcoder/patch/issue25
fix #25: fix document of apply of lazyseg
2 parents 9e3dd6e + 6c76e9e commit a32a17b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

document_en/lazysegtree.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ It returns `op(a[0], ..., a[n - 1])`, assuming the properties of the monoid. It
106106
## apply
107107

108108
```cpp
109-
(1) void seg.apply(int p, T x)
110-
(2) void seg.apply(int l, int r, T x)
109+
(1) void seg.apply(int p, F f)
110+
(2) void seg.apply(int l, int r, F f)
111111
```
112112

113-
- (1) It applies `a[p] = op_st(a[p], x)`.
114-
- (2) It applies `a[i] = op_st(a[i], x)` for all `i = l..r-1`.
113+
- (1) It applies `a[p] = f(a[p])`.
114+
- (2) It applies `a[i] = f(a[i])` for all `i = l..r-1`.
115115

116116
**@{keyword.constraints}**
117117

document_ja/lazysegtree.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ S seg.all_prod()
107107
## apply
108108

109109
```cpp
110-
(1) void seg.apply(int p, T x)
111-
(2) void seg.apply(int l, int r, T x)
110+
(1) void seg.apply(int p, F f)
111+
(2) void seg.apply(int l, int r, F f)
112112
```
113113

114-
- (1) `a[p] = op_st(a[p], x)`
115-
- (2) `i = l..r-1`について`a[i] = op_st(a[i], x)`
114+
- (1) `a[p] = f(a[p])`
115+
- (2) `i = l..r-1`について`a[i] = f(a[i])`
116116

117117
**@{keyword.constraints}**
118118

0 commit comments

Comments
 (0)