util: SumTree::add() documentation

This function copies the reference argument 'element' internally.

Change-Id: I33d94f224bc2b1b89057b90258d500eaa364ab85
This commit is contained in:
Christoph Borchert
2014-12-16 12:02:57 +01:00
committed by Horst Schirmeier
parent f23860c139
commit b0c58bab78

View File

@ -51,7 +51,7 @@ class SumTree {
public:
SumTree() : m_root(new Bucket), m_depth(0) {}
~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);
//! Retrieves (and removes) element at random number position.
T get(typename T::size_type pos) { return get(pos, m_root, 0); }