From 23b8c24da4d68320bdabf6daff6a5affcc62e061 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 11 Mar 2017 07:38:16 -0800 Subject: [PATCH] Add noexcept --- fmt/format.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fmt/format.h b/fmt/format.h index b4b41fbd..9d670a6b 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -591,23 +591,23 @@ class basic_buffer { /** \rst - Increases the buffer capacity to hold at least *size* elements updating + Increases the buffer capacity to hold at least *capacity* elements updating ``ptr_`` and ``capacity_``. \endrst */ - virtual void grow(std::size_t size) = 0; + virtual void grow(std::size_t capacity) = 0; public: virtual ~basic_buffer() {} /** Returns the size of this buffer. */ - std::size_t size() const { return size_; } + std::size_t size() const FMT_NOEXCEPT { return size_; } /** Returns the capacity of this buffer. */ - std::size_t capacity() const { return capacity_; } + std::size_t capacity() const FMT_NOEXCEPT { return capacity_; } /** Returns a pointer to the buffer data. */ - const T *data() const { return ptr_; } + const T *data() const FMT_NOEXCEPT { return ptr_; } /** Resizes the buffer. If T is a POD type new elements may not be initialized.