diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-12-12 09:22:08 -0500 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-12-19 08:50:20 -0500 |
commit | f3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9 (patch) | |
tree | 9d9dbfe1a2e4569ce22ec2e2dfc0cd8b337ca846 /src/mongo/db/namespace_string.h | |
parent | 4a185996c83862c2e4b911ce637591c4ff535108 (diff) | |
download | mongo-f3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9.tar.gz |
SERVER-27306 Remove AutoGetCollection methods with std::string namespace
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 220c188203c..c623dbbac90 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -146,6 +146,10 @@ public: return _ns.size(); } + bool isEmpty() const { + return _ns.empty(); + } + struct Hasher { size_t operator()(const NamespaceString& nss) const { return std::hash<std::string>()(nss._ns); |