2 ms·
Why would you ever want to do something like this in c++? What you are implementing is a map. Just use std::map.
by maxnoe 7y ago
Why would you ever want to do something like this in c++?
What you are implementing is a map. Just use std::map.
- halayli 7y agoLookup time is widely different if you use std::map. But you can use std::vector in a similar fashion.