I really dislike this mindset in the C++ community. The people writing libraries are normal programmers too. They're not some kind of supermen on whom you can load infinite complexity. And it's not like the STL is this amazing piece of software that mere mortals can't beat. Quite the contrary, any sufficiently large piece of software tends to replace the STL at least in parts with their own implementation.
Herb Stutter mentioned once that an advantage of the STL is that it gets you good general-purpose performance initially, but tries to stay out of your way if you want to replace it for something more specialized.
I think you’re right about a codebase replacing parts of STL as necessary. One I see frequently is `std::array` being wrapped with iterators to be essentially a stack-allocated vector.
I don't see that that in any way contrasts with what I wrote. The same is true of the C standard library.
Re:Avoiding Instruction Cache Misses
by MaxBarraclough on Sunday June 23, 2019 @02:28PM
(#20257659)
Do you have an example of what you're thinking of?
Are you talking about STL interfaces or implementations?
This can go a long way to improving user code...but of course it's no magic bullet.