MCPcopy Create free account
hub / github.com/Norbyte/ositools / SafeAdd

Method SafeAdd

OsiInterface/DivBaseTypes.h:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 bool SafeAdd(T const & val)
281 {
282 if (Size < Capacity) {
283 Buf[Size++] = val;
284 return true;
285 } else {
286 return false;
287 }
288 }
289
290 void Remove(uint32_t index)
291 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected