MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / resize

Method resize

src/common/classes/array.h:322–334  ·  view source on GitHub ↗

Resize array according to STL's vector::resize() rules

Source from the content-addressed store, hash-verified

320
321 // Resize array according to STL's vector::resize() rules
322 void resize(const size_type newCount, const T& val)
323 {
324 if (newCount > count)
325 {
326 ensureCapacity(newCount);
327 while (count < newCount) {
328 data[count++] = val;
329 }
330 }
331 else {
332 count = newCount;
333 }
334 }
335
336 // Resize array according to STL's vector::resize() rules
337 void resize(const size_type newCount)

Callers 15

initUnicodeCollationMethod · 0.45
matchesMethod · 0.45
assignMethod · 0.45
createMethod · 0.45
getMappedFileNameFunction · 0.45
prepareForNewValueMethod · 0.45
saveMethod · 0.45
convertMethod · 0.45
toStringMethod · 0.45
random64Function · 0.45
initFromFileMethod · 0.45
getTextMethod · 0.45

Calls

no outgoing calls

Tested by 1

testFunction · 0.36