MCPcopy Create free account
hub / github.com/cinder/Cinder / push_back

Method push_back

include/imgui/imgui_internal.h:744–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742 inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Blocks[i / BLOCK_SIZE][i % BLOCK_SIZE]; }
743 inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Blocks[i / BLOCK_SIZE][i % BLOCK_SIZE]; }
744 inline T* push_back(const T& v) { int i = Size; IM_ASSERT(i >= 0); if (Size == Capacity) reserve(Capacity + BLOCK_SIZE); void* ptr = &Blocks[i / BLOCK_SIZE][i % BLOCK_SIZE]; memcpy(ptr, &v, sizeof(v)); Size++; return (T*)ptr; }
745};
746
747// Helper: ImPool<>

Callers 2

PathLineToMethod · 0.45

Calls 1

reserveFunction · 0.85

Tested by

no test coverage detected