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

Method Push_impl

Source/cmLinkedTree.h:178–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 T* GetPointer(PositionType pos) { return &this->Data[pos]; }
177
178 iterator Push_impl(iterator it, T&& t)
179 {
180 assert(this->UpPositions.size() == this->Data.size());
181 assert(it.Position <= this->UpPositions.size());
182 this->UpPositions.push_back(it.Position);
183 this->Data.push_back(std::move(t));
184 return iterator(this, this->UpPositions.size());
185 }
186
187 std::vector<T> Data;
188 std::vector<PositionType> UpPositions;

Callers 1

PushMethod · 0.95

Calls 4

moveFunction · 0.85
push_backMethod · 0.80
iteratorClass · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected