MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / find

Method find

src/ifcparse/map_variant.h:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 iterator find(const key_type& key) const {
133 return std::visit([&key](auto m) -> iterator {
134 if constexpr (std::is_same_v<std::decay_t<decltype(m)>, std::monostate>) {
135 return iterator{};
136 } else {
137 return iterator(m->find(key));
138 }
139 }, map_);
140 }
141
142 size_t erase(const key_type& key) {
143 return std::visit([&key](auto m) -> size_t {

Callers 15

switch_localeFunction · 0.45
step_implFunction · 0.45
step_implFunction · 0.45
SurfaceStyle.cppFile · 0.45
constructFunction · 0.45
matchMethod · 0.45
addVertexMethod · 0.45
constructMethod · 0.45
convertMethod · 0.45
make_loftMethod · 0.45

Calls 2

iteratorClass · 0.70
visitFunction · 0.50

Tested by 3

test_intersectionMethod · 0.36
test_collisionMethod · 0.36
test_clearanceMethod · 0.36