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

Method insert

src/ifcparse/map_variant.h:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 std::pair<iterator, bool> insert(const value_type& val) {
164 return std::visit([this, &val](auto m) -> std::pair<iterator, bool> {
165 // @todo is monostate still necessary here?
166 if constexpr (!std::is_same_v<std::decay_t<decltype(m)>, std::monostate>) {
167 auto result = m->insert(val);
168 return { iterator(result.first), result.second };
169 } else {
170 return { end(), false };
171 }
172 }, map_);
173 }
174};

Callers 15

InitDefaultMaterialsFunction · 0.45
SurfaceStyle.cppFile · 0.45
istream_helperFunction · 0.45
populateMethod · 0.45
bindMethod · 0.45
convertMethod · 0.45
process_finished_repMethod · 0.45
getMethod · 0.45
piecewise_functionMethod · 0.45
fillet_loopMethod · 0.45
profile_helperMethod · 0.45

Calls 3

iteratorClass · 0.70
endFunction · 0.70
visitFunction · 0.50

Tested by 1

test_intersectionMethod · 0.36