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

Method insert

extlibs/vili/src/node.cpp:475–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473 }
474
475 void node::insert(size_t index, const node& value)
476 {
477 if (is<array>())
478 {
479 auto& vector = std::get<array>(m_data);
480 vector.insert(vector.cbegin() + index, value);
481 }
482 else
483 {
484 throw exceptions::invalid_cast(array_type, to_string(type()), VILI_EXC_INFO);
485 }
486 }
487
488 void node::insert(const std::string& key, node value)
489 {

Callers 15

luaTableToViliObjectFunction · 0.45
Loaders.cppFile · 0.45
convexHullFunction · 0.45
getFunction · 0.45
addPointMethod · 0.45
Canvas.hppFile · 0.45
operator|=Method · 0.45
getHelpColumnsMethod · 0.45
addMethod · 0.45
listTagsFunction · 0.45
TestGroupMethod · 0.45

Calls 5

invalid_castClass · 0.85
to_stringFunction · 0.70
typeEnum · 0.50
cbeginMethod · 0.45
emplaceMethod · 0.45

Tested by 1

TestGroupMethod · 0.36