MCPcopy Create free account
hub / github.com/Kitware/CMake / Truncate

Method Truncate

Source/cmLinkedTree.h:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 iterator Truncate()
158 {
159 assert(!this->UpPositions.empty());
160 this->UpPositions.erase(this->UpPositions.begin() + 1,
161 this->UpPositions.end());
162 assert(!this->Data.empty());
163 this->Data.erase(this->Data.begin() + 1, this->Data.end());
164 return iterator(this, 1);
165 }
166
167 void Clear()
168 {

Callers 1

ResetMethod · 0.80

Calls 5

eraseMethod · 0.80
iteratorClass · 0.70
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected