2 ms·
I see, that makes sense. I guess at that point you have something very much like std::map, except it doesn't keep itself sorted, you have to do it yourself. I
by toth 9y ago
I see, that makes sense. I guess at that point you have something very much like std::map, except it doesn't keep itself sorted, you have to do it yourself.
I guess for cases like this where you initialize it once and never change it again it could even be a better choice (i.e., faster initialization).
- AstralStorm 9y agoThe main difference is that map cannot be reserved ahead of time.