示例#1
0
文件: Multiset.cpp 项目: eltonkl/cs32
//Assignment operator
Multiset& Multiset::operator=(const Multiset& rhs)
{
	if (this == &rhs)
		return *this;
	//Check for aliasing

	_deleteNodes();
	_size = rhs._size;
	_copyNodes(rhs);

	return *this;
}
示例#2
0
 OSS_INLINE virtual void clearPath ()
 {
    _deleteNodes () ;
 }
示例#3
0
文件: Multiset.cpp 项目: eltonkl/cs32
Multiset::~Multiset()
{
	_deleteNodes();
}