diff options
author | Qingyang Chen <qingyang.chen@10gen.com> | 2015-07-16 14:38:03 -0400 |
---|---|---|
committer | Qingyang Chen <qingyang.chen@10gen.com> | 2015-07-23 10:43:46 -0400 |
commit | 84921ca797830b4adaedae01a4357d2bfccfb0a6 (patch) | |
tree | 483c3a19bbf9d0cceda078c418048278cbdeaf93 /src/mongo/util/string_map.h | |
parent | 162fb82bed75ede539bbb960f44d232f8b8e5848 (diff) | |
download | mongo-84921ca797830b4adaedae01a4357d2bfccfb0a6.tar.gz |
SERVER-19450 UnorderedFastKeyTable/StringMap construct with std::initializer_list
Diffstat (limited to 'src/mongo/util/string_map.h')
-rw-r--r-- | src/mongo/util/string_map.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/util/string_map.h b/src/mongo/util/string_map.h index 724b03b9124..13e93977fcc 100644 --- a/src/mongo/util/string_map.h +++ b/src/mongo/util/string_map.h @@ -55,11 +55,11 @@ struct StringMapDefaultConvertorOther { }; template <typename V> -class StringMap : public UnorderedFastKeyTable<StringData, // K_L - std::string, // K_S - V, // V - StringMapDefaultHash, - StringMapDefaultEqual, - StringMapDefaultConvertor, - StringMapDefaultConvertorOther> {}; -} +using StringMap = UnorderedFastKeyTable<StringData, // K_L + std::string, // K_S + V, + StringMapDefaultHash, + StringMapDefaultEqual, + StringMapDefaultConvertor, + StringMapDefaultConvertorOther>; +} // namespace mongo |