diff options
Diffstat (limited to 'include/cppunit/portability/CppUnitMap.h')
| -rw-r--r-- | include/cppunit/portability/CppUnitMap.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/cppunit/portability/CppUnitMap.h b/include/cppunit/portability/CppUnitMap.h new file mode 100644 index 0000000..24df4a5 --- /dev/null +++ b/include/cppunit/portability/CppUnitMap.h @@ -0,0 +1,32 @@ +#ifndef CPPUNIT_PORTABILITY_CPPUNITMAP_H +#define CPPUNIT_PORTABILITY_CPPUNITMAP_H + +// The technic used is similar to the wrapper of STLPort. + +#include <cppunit/Portability.h> +#include <functional> +#include <map> + + +#if CPPUNIT_STD_NEED_ALLOCATOR + +CPPUNIT_NS_BEGIN + +template<class Key, class T> +class CppUnitMap : public std::map<Key + ,T + ,std::less<Key> + ,CPPUNIT_STD_ALLOCATOR> +{ +public: +}; + +CPPUNIT_NS_END + +#else // CPPUNIT_STD_NEED_ALLOCATOR + +#define CppUnitMap std::map + +#endif + +#endif // CPPUNIT_PORTABILITY_CPPUNITMAP_H
\ No newline at end of file |
