Static Key, Value

I need to one static small Key,Value table that I can search based on Key,for example in function I get one Key, function returns mapped value.

what solution is the best for my need?

You can use std::map. Or you can use a sorted std::vector of pairs "key-value" and use the binary_search.
Topic archived. No new replies allowed.