双対セグメント木 [詳解]
#include "segtree_dual.hpp"
公開型 | |
using | Type = typename CommutativeOperator::Type |
公開メンバ関数 | |
SegTreeDual ()=default | |
SegTreeDual (int n) | |
要素数 n の双対セグ木を構築する | |
SegTreeDual (const vector< Type > &v) | |
配列 v から双対セグ木を構築する | |
void | apply (int l, int r, Type x) |
Type | get (int i) |
int | size () |
Type | operator[] (int i) |
双対セグメント木
CommutativeOperator | 作用素 |
segtree_dual.hpp の 8 行目に定義があります。
using SegTreeDual< CommutativeOperator >::Type = typename CommutativeOperator::Type |
segtree_dual.hpp の 9 行目に定義があります。
|
default |
|
inline |
要素数 n の双対セグ木を構築する
segtree_dual.hpp の 13 行目に定義があります。
|
inline |
配列 v から双対セグ木を構築する
segtree_dual.hpp の 19 行目に定義があります。
|
inline |
segtree_dual.hpp の 26 行目に定義があります。
|
inline |
segtree_dual.hpp の 34 行目に定義があります。
|
inline |
segtree_dual.hpp の 44 行目に定義があります。
|
inline |
segtree_dual.hpp の 45 行目に定義があります。