mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-05 05:56:38 +08:00
18 lines
349 B
C++
18 lines
349 B
C++
#pragma once
|
|
|
|
namespace lsplant::art {
|
|
template <class ReflectiveType>
|
|
class ReflectiveReference {
|
|
public:
|
|
static_assert(std::is_same_v<ReflectiveType, ArtMethod>, "Unknown type!");
|
|
|
|
ReflectiveType *Ptr() { return val_; }
|
|
|
|
void Assign(ReflectiveType *r) { val_ = r; }
|
|
|
|
private:
|
|
ReflectiveType *val_;
|
|
};
|
|
|
|
} // namespace lsplant::art
|