MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / resetToSmall

Method resetToSmall

paddle/utils/small_vector.h:177–181  ·  view source on GitHub ↗

Put this vector in a state of being small.

Source from the content-addressed store, hash-verified

175
176 /// Put this vector in a state of being small.
177 void resetToSmall() {
178 this->BeginX = getFirstEl();
179 this->Size = this->Capacity =
180 0; // FIXME: Setting Capacity to 0 is suspect.
181 }
182
183 /// Return true if V is an internal reference to the given range.
184 bool isReferenceToRange(const void *V,

Callers 1

small_vector.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected