Settings

Theme

InlinedVector: Header-only SBO that supports const members in insert/erase

blog.lloyal.ai

1 points by zuhair · 1 comment

Reader

1 thread
zuhairOP

Author here. Header-only SBO container that keeps middle insert/erase working for non-assignable element types (e.g., const members) via a rebuild-and-swap path. When it's useful: mobile constraints (zero deps), tiny-N hot paths, support for immutable types. When not: if your types are assignable or you already carry Abseil/Boost; C++26 std::inplace_vector is relevant for fixed capacity.

Repo: https://github.com/lloyal-ai/inlined-vector (MIT) vcpkg: vcpkg install lloyal-ai-inlined-vector (port merged) Benchmarks: google-benchmark harness in the repo; happy to add your results.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection