Skip to content

Instantly share code, notes, and snippets.

@thiagomg
Created February 4, 2016 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagomg/9bc40aaf3dd1a2da93c7 to your computer and use it in GitHub Desktop.
Save thiagomg/9bc40aaf3dd1a2da93c7 to your computer and use it in GitHub Desktop.
Leitura de configuração em C++
auto prefix(const Key &prefix) const -> std::vector<map_value> {
std::vector<map_value> values;
iterate_and_check(prefix, [&values](const std::pair<Key,Value> &pair) {
values.push_back(pair);
});
return values;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment