Struct segment_tree::SegmentTree
source · pub struct SegmentTree<T, F> { /* private fields */ }
Expand description
注意⚠ この実装は遅いので time limit の厳しい問題には代わりに ACL のセグメントツリーを使うこと。
セグメントツリーです。
Implementations§
source§impl<T, F> SegmentTree<T, F>where
T: Clone,
F: Fn(&T, &T) -> T,
impl<T, F> SegmentTree<T, F>where T: Clone, F: Fn(&T, &T) -> T,
Trait Implementations§
source§impl<T: Clone, F: Clone> Clone for SegmentTree<T, F>
impl<T: Clone, F: Clone> Clone for SegmentTree<T, F>
source§fn clone(&self) -> SegmentTree<T, F>
fn clone(&self) -> SegmentTree<T, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more