MCPcopy Create free account
hub / github.com/couchbase/fleece / push_back_new

Function push_back_new

Fleece/Support/SmallVector.hh:194–194  ·  view source on GitHub ↗

Appends space for a new item but does not construct it. Returns a pointer to the space where the new item would go; the caller needs to put a valid value there or Bad Things will happen later. (This method was added for the user of Encoder and is probably not too useful elsewhere.)

Source from the content-addressed store, hash-verified

192 // put a valid value there or Bad Things will happen later.
193 // (This method was added for the user of Encoder and is probably not too useful elsewhere.)
194 void* push_back_new() {return grow();}
195
196 private:
197 T& _get(size_t i) FLPURE {return ((T*)_begin())[i];}

Callers

nothing calls this directly

Calls 1

growFunction · 0.85

Tested by

no test coverage detected