[rope大法好] STL裏面的可持久化平衡樹--rope

簡單用法:html #include <ext/rope> using namespace __gnu_cxx; int a[1000]; rope<int> x; rope<int> x(a,a + n); rope<int> a(x); x->at(10); x[10]; x->push_back(x) // 在末尾添加x x->insert(pos,x) // 在pos插入x
相關文章
相關標籤/搜索