News for hackers. Stuff that matters.
Re:Sane C++ Libraries by markisus on Sunday January 28, 2024 @12:05AM (#39162766)
In my example, the T is one specific type. So you could have std::vector<Cat>. If you also have Dogs, you just make another vector std::vector<Dog>. It works fine with the standard allocator. You don't have to do anything special.
Re:Sane C++ Libraries by neeeeees on Sunday January 28, 2024 @04:43AM (#39164014)
Ah okay that makes sense to me