diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-12-14 20:03:02 +0000 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2018-12-14 20:07:35 +0000 |
commit | 3ef7ecf5468960c362511a69b153471b33544464 (patch) | |
tree | d4eaf69f60fa122353a4cac2be48a7debc902f94 /thirdparty/opus/tansig_table.h | |
parent | 7ac67bfec106d2ae807e845d0e093c6e0f2c43b5 (diff) |
Don't allocate in Vector's ctor
By relying on the fact that a struct or class's first member has the
same address as the struct itself we can cast VectorWriteProxy<T> to
Vector<T> and access the CowData field.
This allows a Vector to be moved in memory without invalidating the
pointer to the cowdata field.
Diffstat (limited to 'thirdparty/opus/tansig_table.h')
0 files changed, 0 insertions, 0 deletions