aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h')
-rw-r--r--Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h b/Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h
index cfb19c1..a19bd77 100644
--- a/Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h
+++ b/Firestore/core/src/firebase/firestore/immutable/sorted_map_base.h
@@ -54,6 +54,12 @@ class SortedMapBase {
*/
// TODO(wilhuff): actually use this for switching implementations.
static constexpr size_type kFixedSize = 25;
+
+ /**
+ * A sentinel return value that indicates not found. Functionally similar to
+ * std::string::npos.
+ */
+ static constexpr size_type npos = static_cast<size_type>(-1);
};
} // namespace impl