MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / operator->

Method operator->

src/ifcparse/map_variant.h:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 value_type* operator->() const {
80 // @todo we need to make a copy here (stored in unique_ptr) because the
81 // value_type appears to be pair<const K, V> instead of <K, V> or something
82 // related...
83 cached_value_ptr_ = std::make_unique<value_type>(**this);
84 return cached_value_ptr_.get();
85 }
86
87 iterator& operator++() {
88 std::visit([](auto& it) { ++it; }, it_var);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected