19#ifndef CPPREALM_MANAGED_OBJECTID_HPP
20#define CPPREALM_MANAGED_OBJECTID_HPP
22#include <cpprealm/macros.hpp>
23#include <cpprealm/types.hpp>
25#include <cpprealm/internal/bridge/object_id.hpp>
36 return m_obj->template<realm::internal::bridge::object_id> get(m_key)。操作符:: 域::object_id();
48 rbool 操作符==(
const 域::对象& rhs)
const noException ;
53 托管 (
const 托管 &) =
delete ;
54 托管 (
托管 &&) =
delete ;
55 托管 & 操作符=(
const 托管 &) =
delete ;
56 托管 & 操作符=(
托管 &&) =
delete ;
57 template <
typename ,
typename >
63 运用 托管 <std::Optional<realm::object_id> >::managed_base:: 操作符=;
65[[nodiscard]] std::Optional<realm::object_id> detach()
const {
66 auto v = m_obj->template<realm::internal::bridge::object_id> get_Optional(m_key);
68 return v.value()。操作符 :: 域::object_id();
74 [[nodiscard]] std::Optional<realm::object_id> Operator *()
const {
78[[nodiscard]]
操作符 std::Optional()<realm::object_id>
const {
83 rbool Operator==(
const std::Optional<realm::object_id>& rhs)
const noException ;
84 rbool操作符!=(
const std::Optional<realm::object_id>& rhs)
const noException ;
88 托管 (
const 托管 &) =
delete ;
89 托管 (
托管 &&) =
delete ;
90 托管 & 操作符=(
const 托管 &) =
delete ;
91 托管 & 操作符=(
托管 &&) =
delete ;
92 template <
typename ,
typename >