Let’s say that I care about binary size, I already use std::map
, and I need a set. Instead of using std::set<T>
, I could use std::map<T, bool>
. Will that help, or is common code already used under the hood?
I doubt that the C++ standard says something about sharing code, so it might vary between implementations, but I assume there’s some common practice.
8