Hacker News new | ask | show | jobs
by CoolGuySteve 1665 days ago
Most STL data structures take an allocator template argument. If you fight the compiler enough to make your own std::allocator with preallocation then the STL is actually pretty nice.