#include "User.h" User::~User() { std::map >* >::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; } } }