| nima0102 (37) | |
|
Hi 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? Thanks | |
|
|
|
| vlad from moscow (3656) | |
| You can use std::map. Or you can use a sorted std::vector of pairs "key-value" and use the binary_search. | |
|
|
|