summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user.h
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-02-13 14:09:32 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2018-02-14 15:57:45 -0500
commit060e32706980ffc84aac250022d55f92afcffa69 (patch)
treeb179eee919fd60d08c0a1cfbef716b31a7db9925 /src/mongo/db/auth/user.h
parent8b6a6266458cfd065cb0133a909bae856e417882 (diff)
downloadmongo-060e32706980ffc84aac250022d55f92afcffa69.tar.gz
SERVER-33275 Remove `platform/unordered_`* headers
These headers date from before C++11 support and the `::mongo::stdx::` namespace. They can be removed and uses of the names therein can be changed to `::mongo::stdx::unordered_`* forms.
Diffstat (limited to 'src/mongo/db/auth/user.h')
-rw-r--r--src/mongo/db/auth/user.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/auth/user.h b/src/mongo/db/auth/user.h
index 742fd96d17e..3af4f6abbf3 100644
--- a/src/mongo/db/auth/user.h
+++ b/src/mongo/db/auth/user.h
@@ -39,8 +39,8 @@
#include "mongo/db/auth/role_name.h"
#include "mongo/db/auth/user_name.h"
#include "mongo/platform/atomic_word.h"
-#include "mongo/platform/unordered_map.h"
-#include "mongo/platform/unordered_set.h"
+#include "mongo/stdx/unordered_map.h"
+#include "mongo/stdx/unordered_set.h"
namespace mongo {
@@ -98,7 +98,7 @@ public:
const SCRAMCredentials<HashBlock>& scram() const;
};
- typedef unordered_map<ResourcePattern, Privilege> ResourcePrivilegeMap;
+ typedef stdx::unordered_map<ResourcePattern, Privilege> ResourcePrivilegeMap;
explicit User(const UserName& name);
~User();
@@ -249,7 +249,7 @@ private:
ResourcePrivilegeMap _privileges;
// Roles the user has privileges from
- unordered_set<RoleName> _roles;
+ stdx::unordered_set<RoleName> _roles;
// Roles that the user indirectly has privileges from, due to role inheritance.
std::vector<RoleName> _indirectRoles;