I have a class member variable like this:
vector > m_stacks;
When I populate it, I do like this:
v
You don't have to do anything for m_stacks (a class data member). Acquired memory will be released automatically when the class destructor will be called. This is the purpose for which std::vector is used.
m_stacks
class
std::vector