From c21c8c582fb88e2ef2c997c7defd271d3bbf37f7 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 17 Oct 2014 14:05:36 -0700 Subject: [PATCH] feat(util/buffer): expose capacity method --- src/util/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/buffer.h b/src/util/buffer.h index 8b8c34452..f78dbdcb5 100644 --- a/src/util/buffer.h +++ b/src/util/buffer.h @@ -102,6 +102,7 @@ public: iterator end() { return m_buffer + size(); } const_iterator begin() const { return m_buffer; } const_iterator end() const { return m_buffer + size(); } + unsigned capacity() const { return m_capacity; } void push_back(T const & elem) { if (m_pos >= m_capacity)