CppUnit project page FAQ CppUnit home page

CppUnitStack.h
Go to the documentation of this file.
1#ifndef CPPUNIT_PORTABILITY_CPPUNITSTACK_H
2#define CPPUNIT_PORTABILITY_CPPUNITSTACK_H
3
4// The technic used is similar to the wrapper of STLPort.
5
7#include <deque>
8#include <stack>
9
10
11#if CPPUNIT_STD_NEED_ALLOCATOR
12
13template<class T>
14class CppUnitStack : public std::stack<T
15 ,std::deque<T,CPPUNIT_STD_ALLOCATOR> >
16{
17public:
18};
19
20#else // CPPUNIT_STD_NEED_ALLOCATOR
21
22#define CppUnitStack std::stack
23
24#endif
25
26#endif // CPPUNIT_PORTABILITY_CPPUNITSTACK_H
#define CppUnitStack
Definition CppUnitStack.h:22

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers