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

Function reserve

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

Source from the content-addressed store, hash-verified

102
103 void clear() {shrinkTo(0);}
104 void reserve(size_t cap) {if (cap>_capacity) setCapacity(cap);}
105
106 const T& get(size_t i) const FLPURE {
107 assert_precondition(i < _size);

Callers

nothing calls this directly

Calls 1

setCapacityFunction · 0.85

Tested by

no test coverage detected