CppUnitMap.h 592 B

1234567891011121314151617181920212223242526272829
  1. #ifndef CPPUNIT_PORTABILITY_CPPUNITMAP_H
  2. #define CPPUNIT_PORTABILITY_CPPUNITMAP_H
  3. // The technic used is similar to the wrapper of STLPort.
  4. #include <cppunit/Portability.h>
  5. #include <functional>
  6. #include <map>
  7. #if CPPUNIT_STD_NEED_ALLOCATOR
  8. template<class Key, class T>
  9. class CppUnitMap : public std::map<Key
  10. ,T
  11. ,std::less<Key>
  12. ,CPPUNIT_STD_ALLOCATOR>
  13. {
  14. public:
  15. };
  16. #else // CPPUNIT_STD_NEED_ALLOCATOR
  17. #define CppUnitMap std::map
  18. #endif
  19. #endif // CPPUNIT_PORTABILITY_CPPUNITMAP_H