feat(util/rb_tree): buffer => rb_tree
This commit is contained in:
parent
0dd6d6b140
commit
950f9ff79f
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,10 @@ public:
|
|||
rb_tree(CMP const & cmp = CMP()):CMP(cmp) {}
|
||||
rb_tree(rb_tree const & s):CMP(s), m_root(s.m_root) {}
|
||||
rb_tree(rb_tree && s):CMP(s), m_root(s.m_root) {}
|
||||
rb_tree(buffer<T> const & s) {
|
||||
for (auto const & v : s)
|
||||
insert(v);
|
||||
}
|
||||
|
||||
rb_tree & operator=(rb_tree const & s) { m_root = s.m_root; return *this; }
|
||||
rb_tree & operator=(rb_tree && s) { m_root = s.m_root; return *this; }
|
||||
|
|
Loading…
Reference in a new issue