MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / shrink

Method shrink

Source/Support/Array.cpp:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Array::shrink() {
123 AssertIf(_traversing, "Can not shrink array while traversing");
124 _data.shrink_to_fit();
125}
126
127int Array::index(NotNull<Value, 1> value) {
128 auto it = std::find_if(_data.begin(), _data.end(), [&](const Own<Value>& val) {

Callers 10

array_shrinkFunction · 0.45
PrimUnreserveMethod · 0.45
EraseMethod · 0.45
AddPointMethod · 0.45
Demo_QueryingFunction · 0.45
EndPlotFunction · 0.45
ResetFunction · 0.45
ResetMethod · 0.45
ResetMethod · 0.45
ClearTextBufferMethod · 0.45

Calls 1

shrink_to_fitMethod · 0.45

Tested by

no test coverage detected