logoalt Hacker News

kllrnohjtoday at 3:10 PM2 repliesview on HN

And those games do so in a language (C++) where allocators is not a headline feature, and is barely even supported at all in the standard library.

The important part is a language where the standard library isn't special, and Rust has this property, too. So in domains where things like per-frame allocators are useful, you can still have them. That capability just isn't cluttering up the more common path where that isn't useful.


Replies

lefratoday at 3:47 PM

I never used it in practice, so maybe the support isn't that good, but I was under the impression that it was possible to pass custom allocators basically everywhere in the STL. See for example the definition of a vector here:

https://en.cppreference.com/cpp/container/vector

show 1 reply
pixelesquetoday at 6:22 PM

> and is barely even supported at all in the standard library.

What does that mean?