summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sbe/values/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sbe/values/value.h')
-rw-r--r--src/mongo/db/exec/sbe/values/value.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sbe/values/value.h b/src/mongo/db/exec/sbe/values/value.h
index 26ba3e5e1de..ae207106d8b 100644
--- a/src/mongo/db/exec/sbe/values/value.h
+++ b/src/mongo/db/exec/sbe/values/value.h
@@ -844,7 +844,14 @@ public:
}
}
- void push_back(TypeTags tag, Value val);
+ /**
+ * Adds the given SBE value to the set if an equal value is not already present. Assumes
+ * ownership of the given value.
+ *
+ * Returns true if the value was newly inserted, otherwise returns false to indicate that an
+ * equal value was already present in the set.
+ */
+ bool push_back(TypeTags tag, Value val);
auto& values() const noexcept {
return _values;