Hacker News new | ask | show | jobs
by TheMonarchist 1579 days ago
> I'm not aware of a way to construct an std::vector without throwing an exception.

You use an allocator with enough pool for whatever you need to do and avoid out of bounds access.