Lightning Talk: FlexClass - Classes With Dynamic Size For Everyone
summary
A library that implements C style flexible array members for C++ by allocating a single blob with a tiny custom control block (refcount+size packed to eight bytes) and adjacent arrays in-place, so allocation happens once and objects are constructed into that blob. It supports non‑trivial types, multiple arrays (example: three strings, 17 beads and eight folds), correct alignment, exception safety, allocators and customizable handles like make_block.
AI-written summary · about
chapters (4)
- 0:00Introduction to Flex Class
- 1:05Challenges in manual memory
- 2:05Implementing flex class
- 3:24Advanced features and usage








