mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 22:33:37 +00:00
11 lines
145 B
C++
11 lines
145 B
C++
#pragma once
|
|
|
|
template <class T>
|
|
class Reference {
|
|
private:
|
|
T* obj;
|
|
|
|
public:
|
|
T* get() { return obj; }
|
|
Reference(T* i) { obj = i; }
|
|
}; |