cppunitstack.h

来自「浙江大学的悟空嵌入式系统模拟器」· C头文件 代码 · 共 26 行

H
26
字号
#ifndef CPPUNIT_PORTABILITY_CPPUNITSTACK_H
#define CPPUNIT_PORTABILITY_CPPUNITSTACK_H

// The technic used is similar to the wrapper of STLPort.
 
#include <cppunit/Portability.h>
#include <deque>
#include <stack>


#if CPPUNIT_STD_NEED_ALLOCATOR

template<class T>
class CppUnitStack : public std::stack<T
                                      ,std::deque<T,CPPUNIT_STD_ALLOCATOR> >
{
public:
};

#else // CPPUNIT_STD_NEED_ALLOCATOR

#define CppUnitStack std::stack

#endif

#endif // CPPUNIT_PORTABILITY_CPPUNITSTACK_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?