19#ifndef CPPREALM_MANAGED_OBJECTID_HPP
20#define CPPREALM_MANAGED_OBJECTID_HPP
22#include <cprealm/macros.hpp>
23#include <cprealm/types.hpp>
25#include <cpprealm/internal/bridge/object_id.hpp>
36 return m_obj->template get<realm::internal::bridge::object_id>(m_key).operator :: Realm::object_id();
57 modelo<
typename,
typename>
58 amigo estrutura, estrutura managed;
63 Usando <std::opcional <<realm::object_id>Realm gerenciado ::object_id>>::managed_base::operator=;
65 [[nodiscard]] std::optional<realm::object_id> detach()
const {
66 auto v = m_obj->template get_optional<realm::internal::bridge::object_id>(m_key);
68 return v.value().operator :: Realm::object_id();
74 [[nodiscard]] std::opcional<realm::object_id> operador *()
const {
78 [[nodiscard]]
operator std::optional<realm::object_id>()
const {
83 rbool operator==(
const std::opcional<realm::object_id>& rhs)
const noexceto;
84 operador
rbool !=(
const std::optional<realm::object_id>& rhs)
const noexceto;
92 modelo<
typename,
typename>
93 amigo estrutura, estrutura managed;
Definição: macros.hpp:286