diff options
Diffstat (limited to 'src/support')
-rw-r--r-- | src/support/insert_ordered.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/support/insert_ordered.h b/src/support/insert_ordered.h index d4905b945..12c98a3b2 100644 --- a/src/support/insert_ordered.h +++ b/src/support/insert_ordered.h @@ -112,6 +112,8 @@ template<typename Key, typename T> struct InsertOrderedMap { return insert(kv).first->second; } + T& at(const Key& k) { return Map.at(k)->second; } + iterator find(const Key& k) { auto it = Map.find(k); if (it == Map.end()) { |