MCPcopy Create free account
hub / github.com/alecazam/kram / PushBack

Method PushBack

hlslparser/src/Engine.h:162–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 Array(Allocator* allocator) : allocator(allocator), buffer(NULL), size(0), capacity(0) {}
161
162 void PushBack(const T& val)
163 {
164 ASSERT(&val < buffer || &val >= buffer + size);
165
166 int old_size = size;
167 int new_size = size + 1;
168
169 SetSize(new_size);
170
171 ConstructRange(buffer, new_size, old_size, val);
172 }
173 T& PushBackNew()
174 {
175 int old_size = size;

Callers 2

mainFunction · 0.80
ParseTopLevelMethod · 0.80

Calls 1

ConstructRangeFunction · 0.85

Tested by

no test coverage detected