63 local_ref_ex(JObject obj,
bool take_over_only) : ref_{obj, take_over_only} {}
72 ref_ = std::move(right.ref_);
77 explicit operator bool()
const noexcept {
78 return ref_.operator bool();
81 operator const local_ref&()
const noexcept {
89 JObject get()
const noexcept {
90 return static_cast<JObject
>(ref_.get());
93 JObject detach()
noexcept {
94 return static_cast<JObject
>(ref_.detach());