this->exchangeMapsData (theOther);
}
- //! Assignment
+ //! Assignment.
+ //! This method does not change the internal allocator.
NCollection_DoubleMap& Assign (const NCollection_DoubleMap& theOther)
{
if (this == &theOther)
return *this;
- Clear(theOther.myAllocator);
+ Clear();
ReSize (theOther.Extent()-1);
Iterator anIter(theOther);
for (; anIter.More(); anIter.Next())
//! Assignment operator
NCollection_DoubleMap& operator= (const NCollection_DoubleMap& theOther)
- {
+ {
return Assign (theOther);
}