MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / get_proxy

Method get_proxy

src/toml.hpp:7196–7207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7194 mutable bool proxy_instantiated_ = false;
7195
7196 TOML_NODISCARD
7197 proxy_type* get_proxy() const noexcept
7198 {
7199 if (!proxy_instantiated_)
7200 {
7201 auto p = ::new (static_cast<void*>(proxy_)) proxy_type{ iter_->first, *iter_->second.get() };
7202 proxy_instantiated_ = true;
7203 return p;
7204 }
7205 else
7206 return TOML_LAUNDER(reinterpret_cast<proxy_type*>(proxy_));
7207 }
7208
7209 public:
7210 TOML_NODISCARD_CTOR

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected