mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-05 14:06:37 +08:00
19 lines
344 B
C++
19 lines
344 B
C++
|
#pragma once
|
||
|
|
||
|
namespace lsplant::art {
|
||
|
|
||
|
template <typename MirrorType>
|
||
|
class ObjPtr {
|
||
|
public:
|
||
|
inline MirrorType *operator->() const { return Ptr(); }
|
||
|
|
||
|
inline MirrorType *Ptr() const { return reference_; }
|
||
|
|
||
|
inline operator MirrorType *() const { return Ptr(); }
|
||
|
|
||
|
private:
|
||
|
MirrorType *reference_;
|
||
|
};
|
||
|
|
||
|
} // namespace lsplant::art
|