added Map<T>::null()

This commit is contained in:
Mark Olesen
2008-10-23 15:27:39 +02:00
parent 60d1734564
commit 0581aeda6f

View File

@ -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;
}
};