jeudi 26 novembre 2020

How can I get keys set from map or unordered_map in c++?

I want to get all keys from a collection, is there a standard way to do this?

std::unordered_map<std::string, size_t> map;
auto keys = map.get_keys();

Aucun commentaire:

Enregistrer un commentaire