Commit 0581aeda authored by Mark Olesen's avatar Mark Olesen
Browse files

added Map<T>::null()

parent 60d17345
......@@ -54,7 +54,6 @@ class Map
{
public:
// Constructors
//- Construct given initial map size
......@@ -74,6 +73,15 @@ public:
:
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;
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment