1 #ifndef PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 2 #define PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 22 for(
unsigned i=0;i<
m_data.size();i++)
30 void push(std::auto_ptr<T> t) {
32 m_data.back() = t.release();
34 std::auto_ptr<T>
pop() {
35 std::auto_ptr<T> t(
m_data.back());
46 #endif // PTR_STACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
void push(std::auto_ptr< T > t)
std::vector< T * > m_data