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