MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / insert

Method insert

include/choc/choc_SmallVector.h:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402
403template <typename ElementType, size_t preSize>
404void SmallVector<ElementType, preSize>::insert (iterator insertPos, const value_type& item)
405{
406 DISTRHO_SAFE_ASSERT_RETURN (insertPos != nullptr && insertPos >= begin() && insertPos <= end(),);
407 auto index = insertPos - begin();
408 push_back (item);
409 std::rotate (begin() + index, end() - 1, end());
410}
411
412template <typename ElementType, size_t preSize>
413void SmallVector<ElementType, preSize>::insert (iterator insertPos, value_type&& item)

Callers 15

Engine_updateConnectedFunction · 0.80
addParamHandleMethod · 0.80
GetIntRefMethod · 0.80
GetFloatRefMethod · 0.80
GetVoidPtrRefMethod · 0.80
SetIntMethod · 0.80
SetFloatMethod · 0.80
SetVoidPtrMethod · 0.80
DeleteRangeMethod · 0.80
InsertTextAtMethod · 0.80
RemoveLineMethod · 0.80
TextEditor.cppFile · 0.80

Calls 3

push_backFunction · 0.85
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected