CMemory: add reference overload

Assign pointer to reference.
This commit is contained in:
Kawe Mazidjatari 2024-01-02 14:56:28 +01:00
parent a27f1b7fc9
commit de3d3b49a1

View File

@ -48,6 +48,12 @@ public:
return ptr;
}
template<typename T>
inline void GetPtr(T*& outPtr) const
{
outPtr = reinterpret_cast<T*>(ptr);
}
template<class T> inline T GetValue(void) const
{
return *reinterpret_cast<T*>(ptr);