From 5b3824baf20ddd2a0046930a0c8e539eb7b41df6 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Mon, 11 Jun 2018 11:34:17 -0700 Subject: Code review changes. --- src/core/lib/gprpp/inlined_vector.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/lib/gprpp') diff --git a/src/core/lib/gprpp/inlined_vector.h b/src/core/lib/gprpp/inlined_vector.h index f36f6cb706..0d2586e507 100644 --- a/src/core/lib/gprpp/inlined_vector.h +++ b/src/core/lib/gprpp/inlined_vector.h @@ -99,6 +99,8 @@ class InlinedVector { void push_back(T&& value) { emplace_back(std::move(value)); } size_t size() const { return size_; } + bool empty() const { return size_ == 0; } + size_t capacity() const { return capacity_; } void clear() { -- cgit v1.2.3