mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added Map<T>::null()
This commit is contained in:
@ -54,7 +54,6 @@ class Map
|
|||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct given initial map size
|
//- Construct given initial map size
|
||||||
@ -74,6 +73,15 @@ public:
|
|||||||
:
|
:
|
||||||
HashTable<T, label, Hash<label> >(map)
|
HashTable<T, label, Hash<label> >(map)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
//- Return a null Map
|
||||||
|
static const Map<T>& null()
|
||||||
|
{
|
||||||
|
Map<T>* nullPtr = reinterpret_cast<Map<T>*>(0);
|
||||||
|
return *nullPtr;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user