#include <segment_tree.hpp>
◆ SegmentTree()
template<std::integral T>
◆ range_add()
template<std::integral T>
Add value
to all elements in the range [left, right].
- Parameters
-
left | 0-indexed, inclusive |
right | 0-indexed, inclusive |
value | The value to add for each element within the specified range |
◆ range_set()
template<std::integral T>
Assign value
to all elements in the range [left, right].
- Parameters
-
left | 0-indexed, inclusive |
right | 0-indexed, inclusive |
value | The value to set for each element within the specified range |
◆ range_sum()
template<std::integral T>
Compute the sum of values within the range [left, right].
- Parameters
-
left | 0-indexed, inclusive |
right | 0-indexed, inclusive |
◆ size()
template<std::integral T>
Return the size of the original vector.
The documentation for this class was generated from the following file: