MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / insert

Function insert

include/cpp/VirtualArray.h:511–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509
510 template<typename T>
511 inline void insert(int inPos, const T &inValue)
512 {
513 if (store!=hx::arrayFixed)
514 {
515 if (inPos>(store==hx::arrayEmpty ? 0 : (int)base->length) )
516 EnsureObjectStorage();
517 else
518 EnsureStorage(inValue);
519 }
520
521 base->__insert(inPos,inValue);
522 }
523
524 template<typename T>
525 inline void unshift(const T& inValue)

Callers

nothing calls this directly

Calls 2

EnsureObjectStorageFunction · 0.85
EnsureStorageFunction · 0.85

Tested by

no test coverage detected