summaryrefslogtreecommitdiff
path: root/src/mongo/util/sequence_util.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-10-18 15:03:39 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-10-18 15:03:39 -0400
commit86ea362635929038c827616d26c07ef0d70fb709 (patch)
tree5e17c07e7039060e56efd630cf55198c01798af4 /src/mongo/util/sequence_util.h
parent715d1a6629b86d4a892d6ff74889e84bda00c522 (diff)
downloadmongo-86ea362635929038c827616d26c07ef0d70fb709.tar.gz
SERVER-9516 Relax type requirements for second parameter to sequenceContains().
Diffstat (limited to 'src/mongo/util/sequence_util.h')
-rw-r--r--src/mongo/util/sequence_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/sequence_util.h b/src/mongo/util/sequence_util.h
index 858f1de707e..257b14eb834 100644
--- a/src/mongo/util/sequence_util.h
+++ b/src/mongo/util/sequence_util.h
@@ -24,11 +24,11 @@
namespace mongo {
-/*
+/**
* Returns true if "container" contains "value".
*/
-template <typename C>
-bool sequenceContains(const C& container, typename C::const_reference value) {
+template <typename C, typename T>
+bool sequenceContains(const C& container, const T& value) {
using std::find;
return find(container.begin(), container.end(), value) != container.end();
}