summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-12-12 09:22:08 -0500
committerJames Wahlin <james.wahlin@10gen.com>2016-12-19 08:50:20 -0500
commitf3d3087a9f5c900cca6b9f69b7c07b69f69fb1d9 (patch)
tree9d9dbfe1a2e4569ce22ec2e2dfc0cd8b337ca846 /src/mongo/db/namespace_string.h
parent4a185996c83862c2e4b911ce637591c4ff535108 (diff)
downloadmongo-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.h4
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);