mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-01 00:21:51 +08:00
0024271: Provide Boolean operations for NCollection_Map
NCollection_Map - add two maps content Exchange operation without data copying Add Exchange method to NCollection_DataMap, NCollection_DoubleMap, NCollection_IndexedDataMap, NCollection_IndexedMap Add NCollection_Map::IsEqual() method Corrections for gcc - use this->myAllocator
This commit is contained in:
@@ -152,6 +152,14 @@ template < class TheKeyType,
|
||||
Standard_TypeMismatch::Raise ("NCollection_DataMap::Assign impossible");
|
||||
}
|
||||
|
||||
//! Exchange the content of two maps without re-allocations.
|
||||
//! Notice that allocators will be swapped as well!
|
||||
void Exchange (NCollection_DataMap& theOther)
|
||||
{
|
||||
this->exchangeAllocators (theOther);
|
||||
this->exchangeMapsData (theOther);
|
||||
}
|
||||
|
||||
//! = another map
|
||||
NCollection_DataMap& operator= (const NCollection_DataMap& theOther)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user