#include "segtree_2d.hpp"
公開型 | |
using | Type = Monoid::Type |
公開メンバ関数 | |
SegmentTree2D ()=default | |
SegmentTree2D (int h, int w) | |
サイズ h * w の2次元セグメント木を構築する | |
void | set (int x, int y, Type v) |
位置 (x, y) の要素を v に更新する | |
Type | fold (int l, int r, int u, int d) |
矩形領域 [l, r) × [u, d) のモノイド積を返す | |
segtree_2d.hpp の 4 行目に定義があります。
using SegmentTree2D< Monoid >::Type = Monoid::Type |
segtree_2d.hpp の 5 行目に定義があります。
|
default |
|
inline |
サイズ h * w の2次元セグメント木を構築する
segtree_2d.hpp の 10 行目に定義があります。
|
inline |
|
inline |