r/cpp • u/antara33 • Dec 17 '23
Cpp std features and tech domains
Hello fello C++ developers!
I been reading a lot this sub and it always comes to the conversation that the std have a lot of things, and that you are expected to learn what its related to your tech domain.
So here is my question:
What parts of the std do you link to what domains?
If you were to recommend someone that aims to build servers what they should start learning, what would you suggest? Why?
Same for other domains ofc, I'm curious on how the experience and language features varies per domain and usage, and how you find out what you need or where to search for it.
Edit: it seems that my question was not laid out correctly.
Im not asking specifically about server stuff for my line of work, I'm asking about yours.
So, what do you do? What parts of C++ do you use? Why those?
Sorry if my initial post was unclear!
2
u/rhubarbjin Dec 18 '23 edited Dec 18 '23
I work in gamedev. Our company has a strict no-STL policy for anything that would allocate memory (e.g.,
std::sortis fine,std::vectoris not).We ship on multiple platforms where memory allocations must be carefully managed. The STL's allocator infra was deemed insufficient, so the team opted for an in-house library instead.
(I'm merely describing the situation as it is. I'm not judging whether or not that was the correct decision; it was many years before I joined and it would be above my level anyway.)
Fancier stuff (filesystem, network, threads, etc.) is off-limits too. Those need to go through each platform's proprietary API.