diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:18:23 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:18:23 -0400 |
commit | c9548e729c8fecd9d7a9a5dd341da0433194ac73 (patch) | |
tree | 37b05114182d8a7787c0b39aa71b0ec381292e85 /src/mongo/db/auth | |
parent | c43636652fc4fb69a47f4eaaa767bc57bb59bb5f (diff) | |
download | mongo-c9548e729c8fecd9d7a9a5dd341da0433194ac73.tar.gz |
SERVER-39338 Remove `stdx/functional.h`
Diffstat (limited to 'src/mongo/db/auth')
11 files changed, 15 insertions, 15 deletions
diff --git a/src/mongo/db/auth/authorization_manager.h b/src/mongo/db/auth/authorization_manager.h index 0646954b6ae..19034dee81b 100644 --- a/src/mongo/db/auth/authorization_manager.h +++ b/src/mongo/db/auth/authorization_manager.h @@ -29,6 +29,7 @@ #pragma once +#include <functional> #include <memory> #include <string> @@ -49,7 +50,6 @@ #include "mongo/db/namespace_string.h" #include "mongo/db/server_options.h" #include "mongo/stdx/condition_variable.h" -#include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" #include "mongo/stdx/unordered_map.h" diff --git a/src/mongo/db/auth/authorization_manager_impl.h b/src/mongo/db/auth/authorization_manager_impl.h index 830e6094bce..d18b6e7724a 100644 --- a/src/mongo/db/auth/authorization_manager_impl.h +++ b/src/mongo/db/auth/authorization_manager_impl.h @@ -31,6 +31,7 @@ #include "mongo/db/auth/authorization_manager.h" +#include <functional> #include <memory> #include <mutex> #include <string> @@ -50,7 +51,6 @@ #include "mongo/db/server_options.h" #include "mongo/platform/atomic_word.h" #include "mongo/stdx/condition_variable.h" -#include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" #include "mongo/stdx/unordered_map.h" #include "mongo/util/invalidating_lru_cache.h" diff --git a/src/mongo/db/auth/authorization_session_test.cpp b/src/mongo/db/auth/authorization_session_test.cpp index b0ec73151e4..184706257a1 100644 --- a/src/mongo/db/auth/authorization_session_test.cpp +++ b/src/mongo/db/auth/authorization_session_test.cpp @@ -1013,7 +1013,7 @@ TEST_F(AuthorizationSessionTest, CheckAuthForAggregateWithDeeplyNestedLookup) { // Recursively adds nested $lookup stages to 'pipelineBob', building a pipeline with // 'levelsToGo' deep $lookup stages. - stdx::function<void(BSONArrayBuilder*, int)> addNestedPipeline; + std::function<void(BSONArrayBuilder*, int)> addNestedPipeline; addNestedPipeline = [&addNestedPipeline](BSONArrayBuilder* pipelineBob, int levelsToGo) { if (levelsToGo == 0) { return; diff --git a/src/mongo/db/auth/authz_manager_external_state.h b/src/mongo/db/auth/authz_manager_external_state.h index d4f2539c7f5..e18963fefb3 100644 --- a/src/mongo/db/auth/authz_manager_external_state.h +++ b/src/mongo/db/auth/authz_manager_external_state.h @@ -29,6 +29,7 @@ #pragma once +#include <functional> #include <memory> #include <string> #include <vector> @@ -42,7 +43,6 @@ #include "mongo/db/auth/user.h" #include "mongo/db/auth/user_name.h" #include "mongo/db/jsobj.h" -#include "mongo/stdx/functional.h" namespace mongo { diff --git a/src/mongo/db/auth/authz_manager_external_state_d.cpp b/src/mongo/db/auth/authz_manager_external_state_d.cpp index 1f58ef1ecf4..2257f144aed 100644 --- a/src/mongo/db/auth/authz_manager_external_state_d.cpp +++ b/src/mongo/db/auth/authz_manager_external_state_d.cpp @@ -63,7 +63,7 @@ Status AuthzManagerExternalStateMongod::query( const NamespaceString& collectionName, const BSONObj& query, const BSONObj& projection, - const stdx::function<void(const BSONObj&)>& resultProcessor) { + const std::function<void(const BSONObj&)>& resultProcessor) { try { DBDirectClient client(opCtx); client.query(resultProcessor, collectionName, query, &projection); diff --git a/src/mongo/db/auth/authz_manager_external_state_d.h b/src/mongo/db/auth/authz_manager_external_state_d.h index 97cbc1b074b..289a7567236 100644 --- a/src/mongo/db/auth/authz_manager_external_state_d.h +++ b/src/mongo/db/auth/authz_manager_external_state_d.h @@ -29,13 +29,13 @@ #pragma once +#include <functional> #include <string> #include "mongo/base/status.h" #include "mongo/db/auth/authz_manager_external_state_local.h" #include "mongo/db/auth/role_graph.h" #include "mongo/db/auth/user_name.h" -#include "mongo/stdx/functional.h" namespace mongo { @@ -61,7 +61,7 @@ public: const NamespaceString& collectionName, const BSONObj& query, const BSONObj& projection, - const stdx::function<void(const BSONObj&)>& resultProcessor); + const std::function<void(const BSONObj&)>& resultProcessor); }; } // namespace mongo diff --git a/src/mongo/db/auth/authz_manager_external_state_local.h b/src/mongo/db/auth/authz_manager_external_state_local.h index 5ddb737b4f5..31b3869f114 100644 --- a/src/mongo/db/auth/authz_manager_external_state_local.h +++ b/src/mongo/db/auth/authz_manager_external_state_local.h @@ -29,6 +29,7 @@ #pragma once +#include <functional> #include <string> #include "mongo/base/status.h" @@ -36,7 +37,6 @@ #include "mongo/db/auth/role_graph.h" #include "mongo/db/auth/role_name.h" #include "mongo/db/auth/user_name.h" -#include "mongo/stdx/functional.h" #include "mongo/stdx/mutex.h" namespace mongo { @@ -101,7 +101,7 @@ public: const NamespaceString& collectionName, const BSONObj& query, const BSONObj& projection, - const stdx::function<void(const BSONObj&)>& resultProcessor) = 0; + const std::function<void(const BSONObj&)>& resultProcessor) = 0; void logOp(OperationContext* opCtx, AuthorizationManagerImpl* authManager, diff --git a/src/mongo/db/auth/authz_manager_external_state_mock.cpp b/src/mongo/db/auth/authz_manager_external_state_mock.cpp index acaf8389712..e4951dc4c8c 100644 --- a/src/mongo/db/auth/authz_manager_external_state_mock.cpp +++ b/src/mongo/db/auth/authz_manager_external_state_mock.cpp @@ -130,7 +130,7 @@ Status AuthzManagerExternalStateMock::query( const NamespaceString& collectionName, const BSONObj& query, const BSONObj&, - const stdx::function<void(const BSONObj&)>& resultProcessor) { + const std::function<void(const BSONObj&)>& resultProcessor) { std::vector<BSONObjCollection::iterator> iterVector; Status status = _queryVector(opCtx, collectionName, query, &iterVector); if (!status.isOK()) { diff --git a/src/mongo/db/auth/authz_manager_external_state_mock.h b/src/mongo/db/auth/authz_manager_external_state_mock.h index 9d316a764f9..670c73c924f 100644 --- a/src/mongo/db/auth/authz_manager_external_state_mock.h +++ b/src/mongo/db/auth/authz_manager_external_state_mock.h @@ -29,6 +29,7 @@ #pragma once +#include <functional> #include <map> #include <string> #include <vector> @@ -38,7 +39,6 @@ #include "mongo/db/auth/role_graph.h" #include "mongo/db/jsobj.h" #include "mongo/db/namespace_string.h" -#include "mongo/stdx/functional.h" namespace mongo { @@ -70,7 +70,7 @@ public: const NamespaceString& collectionName, const BSONObj& query, const BSONObj& projection, // Currently unused in mock - const stdx::function<void(const BSONObj&)>& resultProcessor); + const std::function<void(const BSONObj&)>& resultProcessor); /** * Inserts the given user object into the "admin" database. diff --git a/src/mongo/db/auth/authz_manager_external_state_s.h b/src/mongo/db/auth/authz_manager_external_state_s.h index f0f1e476c8a..4e20418a446 100644 --- a/src/mongo/db/auth/authz_manager_external_state_s.h +++ b/src/mongo/db/auth/authz_manager_external_state_s.h @@ -29,6 +29,7 @@ #pragma once +#include <functional> #include <memory> #include <string> @@ -36,7 +37,6 @@ #include "mongo/db/auth/authz_manager_external_state.h" #include "mongo/db/auth/privilege_format.h" #include "mongo/db/auth/user_name.h" -#include "mongo/stdx/functional.h" namespace mongo { diff --git a/src/mongo/db/auth/sasl_scram_test.cpp b/src/mongo/db/auth/sasl_scram_test.cpp index b16d58b9288..0a6ee532849 100644 --- a/src/mongo/db/auth/sasl_scram_test.cpp +++ b/src/mongo/db/auth/sasl_scram_test.cpp @@ -139,7 +139,7 @@ class SCRAMMutators { public: SCRAMMutators() {} - void setMutator(SaslTestState state, stdx::function<void(std::string&)> fun) { + void setMutator(SaslTestState state, std::function<void(std::string&)> fun) { mutators.insert(std::make_pair(state, fun)); } @@ -151,7 +151,7 @@ public: } private: - std::map<SaslTestState, stdx::function<void(std::string&)>> mutators; + std::map<SaslTestState, std::function<void(std::string&)>> mutators; }; struct SCRAMStepsResult { |