
16 Oct
2012
16 Oct
'12
12:52 p.m.
On Tue, Oct 16, 2012 at 5:00 AM, Klaim - Joël Lamotte <mjklaim@gmail.com>wrote: [...]
Currently, my solution is implemented by using a boost::stable_vector< boost::optional<T>> which seems efficient (to my surprise).
[...] Sounds basically equivalent to a std::vector<T*> or (better) std::vector< std::unique_ptr<T> >, no? I would expect these explicit pointer-based containers to have a marginally smaller memory footprint than stable_vector< optional<T> >. - Jeff