22 lines
368 B
C++
22 lines
368 B
C++
|
#include "User.h"
|
||
|
|
||
|
|
||
|
User::~User()
|
||
|
{
|
||
|
std::map<unsigned int, std::map<unsigned int, std::list<operation> >* >::iterator it;
|
||
|
|
||
|
while (!_accounts.empty())
|
||
|
{
|
||
|
delete _accounts.front();
|
||
|
_accounts.pop_front();
|
||
|
}
|
||
|
|
||
|
for (it = _operations.begin(); it != _operations.end(); it++)
|
||
|
{
|
||
|
if (_operations[it->first])
|
||
|
{
|
||
|
delete it->second;
|
||
|
}
|
||
|
}
|
||
|
}
|