prime/include/rstl/rc_ptr.hpp
Luke Street 27d94af97b Add headers, clang-format, decompctx.py & more
Former-commit-id: 53f8d3cba7bd2d675cf6b99544af58bd24f98620
2022-04-09 20:17:13 -04:00

26 lines
381 B
C++

#ifndef _RSTL_RC_PTR_HPP
#define _RSTL_RC_PTR_HPP
#include "types.h"
template < typename T >
class CRefData {
public:
T* x0_ptr;
unsigned int x4_refCount;
};
namespace rstl {
template < typename T >
class rc_ptr {
CRefData< T >* x0_refData;
public:
~rc_ptr();
T* get() { return x0_refData->x0_ptr; }
T* operator->() { return get(); }
};
} // namespace rstl
#endif