CppUnitStack.h 520 B

1234567891011121314151617181920212223242526
  1. #ifndef CPPUNIT_PORTABILITY_CPPUNITSTACK_H
  2. #define CPPUNIT_PORTABILITY_CPPUNITSTACK_H
  3. // The technic used is similar to the wrapper of STLPort.
  4. #include <cppunit/Portability.h>
  5. #include <deque>
  6. #include <stack>
  7. #if CPPUNIT_STD_NEED_ALLOCATOR
  8. template<class T>
  9. class CppUnitStack : public std::stack<T
  10. ,std::deque<T,CPPUNIT_STD_ALLOCATOR> >
  11. {
  12. public:
  13. };
  14. #else // CPPUNIT_STD_NEED_ALLOCATOR
  15. #define CppUnitStack std::stack
  16. #endif
  17. #endif // CPPUNIT_PORTABILITY_CPPUNITSTACK_H