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/pipeline/document_path_support.cpp | |
parent | c43636652fc4fb69a47f4eaaa767bc57bb59bb5f (diff) | |
download | mongo-c9548e729c8fecd9d7a9a5dd341da0433194ac73.tar.gz |
SERVER-39338 Remove `stdx/functional.h`
Diffstat (limited to 'src/mongo/db/pipeline/document_path_support.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_path_support.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_path_support.cpp b/src/mongo/db/pipeline/document_path_support.cpp index d89f122463c..3da0790b574 100644 --- a/src/mongo/db/pipeline/document_path_support.cpp +++ b/src/mongo/db/pipeline/document_path_support.cpp @@ -49,8 +49,7 @@ namespace { * If 'value' is an array, invokes 'callback' once on each element of 'value'. Otherwise, if 'value' * is not missing, invokes 'callback' on 'value' itself. */ -void invokeCallbackOnTrailingValue(const Value& value, - stdx::function<void(const Value&)> callback) { +void invokeCallbackOnTrailingValue(const Value& value, std::function<void(const Value&)> callback) { if (value.isArray()) { for (auto&& finalValue : value.getArray()) { if (!finalValue.missing()) { @@ -65,7 +64,7 @@ void invokeCallbackOnTrailingValue(const Value& value, void visitAllValuesAtPathHelper(Document doc, const FieldPath& path, size_t fieldPathIndex, - stdx::function<void(const Value&)> callback) { + std::function<void(const Value&)> callback) { invariant(path.getPathLength() > 0 && fieldPathIndex < path.getPathLength()); // The first field in the path must be treated as a field name, even if it is numeric as in @@ -116,7 +115,7 @@ void visitAllValuesAtPathHelper(Document doc, void visitAllValuesAtPath(const Document& doc, const FieldPath& path, - stdx::function<void(const Value&)> callback) { + std::function<void(const Value&)> callback) { visitAllValuesAtPathHelper(doc, path, 0, callback); } |