prime/include/rstl/auto_ptr.hpp
Luke Street 61ffa2b5ab main: Add EnsureWorldPakReady
Former-commit-id: 292dfa1eeaf98ad3901dab7cb5c89e9e0006ca77
2022-04-11 18:42:14 -04:00

20 lines
319 B
C++

#ifndef _RSTL_AUTO_PTR_HPP
#define _RSTL_AUTO_PTR_HPP
#include "types.h"
namespace rstl {
template < typename T >
class auto_ptr {
bool x0_has;
T* x4_item;
public:
auto_ptr() : x0_has(false), x4_item(nullptr) {}
T* get() { return x4_item; }
T* operator->() { return get(); }
};
} // namespace rstl
#endif