Skip to content

Instantly share code, notes, and snippets.

@thiagomg thiagomg/config.h
Created Feb 4, 2016

Embed
What would you like to do?
Leitura de configuração em C++
template<typename Key = std::string, typename Value = std::string, typename Store = std::unordered_map<Key, Value>>
struct config_holder {
using key_iter = typename Key::const_iterator;
using val_iter = typename Value::const_iterator;
using key_pair = std::pair<key_iter, key_iter>;
using val_pair = std::pair<val_iter, val_iter>;
using range = std::pair<key_pair, val_pair>;
using map_value = typename Store::value_type;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.