diff options
Diffstat (limited to 'Firestore/core/src/firebase/firestore/immutable/llrb_node.h')
-rw-r--r-- | Firestore/core/src/firebase/firestore/immutable/llrb_node.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Firestore/core/src/firebase/firestore/immutable/llrb_node.h b/Firestore/core/src/firebase/firestore/immutable/llrb_node.h index 3dc4030..d2a2227 100644 --- a/Firestore/core/src/firebase/firestore/immutable/llrb_node.h +++ b/Firestore/core/src/firebase/firestore/immutable/llrb_node.h @@ -57,16 +57,16 @@ class LlrbNode : public SortedMapBase { LlrbNode() : LlrbNode{EmptyRep()} { } - /** Returns the number of elements at this node or beneath it in the tree. */ - size_type size() const { - return rep_->size_; - } - /** Returns true if this is an empty node--a leaf node in the tree. */ bool empty() const { return size() == 0; } + /** Returns the number of elements at this node or beneath it in the tree. */ + size_type size() const { + return rep_->size_; + } + /** Returns true if this node is red (as opposed to black). */ bool red() const { return static_cast<bool>(rep_->color_); |