]> git.seodisparate.com - EntityComponentMetaSystem/commit
Replace vector with deque for Component storage
authorStephen Seo <seo.disparate@gmail.com>
Wed, 6 Nov 2019 06:47:16 +0000 (15:47 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 6 Nov 2019 06:47:16 +0000 (15:47 +0900)
commite0da16a63e917de65a40993a9dbc4b1e7b127c71
tree8778e8f593a4da0792514359ab06ae693522502e
parent4db5e0caed439680c9e2b8015cda104bf99ec074
Replace vector with deque for Component storage

When reallocating more data, vector moves the original data to a new
buffer. Deque preserves the location of the original data, preventing
invalidated pointers to existing data when additional allocation is
required.
src/EC/Manager.hpp