util: SumTree::add() documentation
This function copies the reference argument 'element' internally. Change-Id: I33d94f224bc2b1b89057b90258d500eaa364ab85
This commit is contained in:
committed by
Horst Schirmeier
parent
f23860c139
commit
b0c58bab78
@ -51,7 +51,7 @@ class SumTree {
|
|||||||
public:
|
public:
|
||||||
SumTree() : m_root(new Bucket), m_depth(0) {}
|
SumTree() : m_root(new Bucket), m_depth(0) {}
|
||||||
~SumTree() { delete m_root; }
|
~SumTree() { delete m_root; }
|
||||||
//! Adds a new element to the tree.
|
//! Adds a copy of a new element to the tree. The copy is created internally.
|
||||||
void add(const T& element);
|
void add(const T& element);
|
||||||
//! Retrieves (and removes) element at random number position.
|
//! Retrieves (and removes) element at random number position.
|
||||||
T get(typename T::size_type pos) { return get(pos, m_root, 0); }
|
T get(typename T::size_type pos) { return get(pos, m_root, 0); }
|
||||||
|
|||||||
Reference in New Issue
Block a user