diff options
author | Gil <mcg@google.com> | 2018-04-24 10:24:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 10:24:32 -0700 |
commit | bc6ebff07e303e6739130a540f44704f0c1acffb (patch) | |
tree | a8a68834569c515d7943971604995fcd32b4d9d9 /Firestore/core/src/firebase/firestore/util/comparator_holder.h | |
parent | 700413cb64bd9a6a9c57b862106195f39decb045 (diff) |
Add key-only projections to immutable C++ maps (#1166)
* Add a simple range adapter.
* Add SortedMap::keys
* Add SortedMap::keys_from
* Add SortedMap::keys_in
Diffstat (limited to 'Firestore/core/src/firebase/firestore/util/comparator_holder.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/util/comparator_holder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/util/comparator_holder.h b/Firestore/core/src/firebase/firestore/util/comparator_holder.h index c7f6144..3147117 100644 --- a/Firestore/core/src/firebase/firestore/util/comparator_holder.h +++ b/Firestore/core/src/firebase/firestore/util/comparator_holder.h @@ -35,6 +35,7 @@ class ComparatorHolder { : comparator_(comparator) { } + public: const C& comparator() const noexcept { return comparator_; } @@ -50,6 +51,7 @@ class ComparatorHolder<C, true> : private C { explicit ComparatorHolder(const C& /* comparator */) noexcept { } + public: const C& comparator() const noexcept { return *this; } |