Exemplo n.º 1
0
void Channel::DelUser(const MemberMap::iterator& membiter)
{
	Membership* memb = membiter->second;
	memb->cull();
	memb->~Membership();
	userlist.erase(membiter);

	// If this channel became empty then it should be removed
	CheckDestroy();
}
Exemplo n.º 2
0
void Channel::DelUser(const UserMembIter& membiter)
{
	Membership* memb = membiter->second;
	memb->cull();
	delete memb;
	userlist.erase(membiter);

	// If this channel became empty then it should be removed
	CheckDestroy();
}