4 ms·
What use-case are you envisioning where one needs to "carefully control" the allocator for STL types? Your idea of heavenly C++ sounds like my idea of hell.
by Olipro 6y ago
What use-case are you envisioning where one needs to "carefully control" the allocator for STL types?
Your idea of heavenly C++ sounds like my idea of hell.
- hexane360 6y ago>Your idea of heavenly C++ sounds like my idea of hell. I'm concerned this may be the definitive C++ experience...
- ska 6y agoTrue of pretty much all "big tent" languages, I suspect.
- ajoseps 6y agoYou can use custom allocators to minimize dynamic allocation. STL now provides some of these allocators out of the box, but it still can be useful to define your own. Arena or memory pool allocators are the first that come to mind.
- spacechild1 6y agoWhile I work in a field where such things are necessary (real-time audio programming), I doubt that such things are relevant for someone just starting out with C++...
- ajoseps 6y agoOh yeah, I definitely agree. I don't think it's relevant for someone just starting out. Just wanted to put it out as an example
- jcelerier 6y ago> I doubt that such things are relevant for someone just starting out with C++... you'd be amazed at the amount of people who start learning C++ because they want to write VSTs
- spacechild1 6y agoTrue, but they would probably use a framework like JUCE which does a great job at hiding the complexity. Writing a VST3 plugin from scratch is not for the faint of heart.