diff options
author | Gil <mcg@google.com> | 2018-04-17 14:47:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-17 14:47:45 -0700 |
commit | 9329e6e09bed6925b3292aa05fea28e2bcd4d9ef (patch) | |
tree | 2d14ffa8d4087886e2842d678d7b27130868c302 /Firestore/core/src/firebase/firestore/immutable/map_entry.h | |
parent | 1c44352889f4a48ddb5e7a586e6a9d1eef41193d (diff) |
Implement TreeSortedMap::insert (#1081)
* Make LlrbNode Rep more explicit, share empty node
* SortedMap::insert converts implementations
* Implement LlrbNode::insert
* Remove TestPolicy<SortedMap>
Diffstat (limited to 'Firestore/core/src/firebase/firestore/immutable/map_entry.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/immutable/map_entry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/immutable/map_entry.h b/Firestore/core/src/firebase/firestore/immutable/map_entry.h index 1022b06..b2b3c97 100644 --- a/Firestore/core/src/firebase/firestore/immutable/map_entry.h +++ b/Firestore/core/src/firebase/firestore/immutable/map_entry.h @@ -51,6 +51,10 @@ struct KeyComparator { return key_comparator_(lhs.first, rhs.first); } + const C& comparator() const { + return key_comparator_; + } + private: C key_comparator_; }; |