summaryrefslogtreecommitdiff
path: root/src/mongo/util/invalidating_lru_cache_test.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2019-06-10 01:18:23 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-06-10 01:18:23 -0400
commitc9548e729c8fecd9d7a9a5dd341da0433194ac73 (patch)
tree37b05114182d8a7787c0b39aa71b0ec381292e85 /src/mongo/util/invalidating_lru_cache_test.cpp
parentc43636652fc4fb69a47f4eaaa767bc57bb59bb5f (diff)
downloadmongo-c9548e729c8fecd9d7a9a5dd341da0433194ac73.tar.gz
SERVER-39338 Remove `stdx/functional.h`
Diffstat (limited to 'src/mongo/util/invalidating_lru_cache_test.cpp')
-rw-r--r--src/mongo/util/invalidating_lru_cache_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/util/invalidating_lru_cache_test.cpp b/src/mongo/util/invalidating_lru_cache_test.cpp
index 150cae38792..9546091f061 100644
--- a/src/mongo/util/invalidating_lru_cache_test.cpp
+++ b/src/mongo/util/invalidating_lru_cache_test.cpp
@@ -31,10 +31,10 @@
#include "mongo/platform/basic.h"
-#include "boost/optional.hpp"
+#include <boost/optional.hpp>
+#include <functional>
#include "mongo/platform/atomic_word.h"
-#include "mongo/stdx/functional.h"
#include "mongo/stdx/thread.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/future.h"
@@ -53,13 +53,13 @@ public:
_isValid.store(isValid);
}
- void setValidHook(stdx::function<bool()> validHook) {
+ void setValidHook(std::function<bool()> validHook) {
_isValidHook = std::move(validHook);
}
private:
AtomicWord<bool> _isValid{true};
- boost::optional<stdx::function<bool()>> _isValidHook;
+ boost::optional<std::function<bool()>> _isValidHook;
};
struct TestValueInvalidator {