Unverified Commit 0415cf23 authored by dominicpoeschko's avatar dominicpoeschko Committed by GitHub

add const begin and end overload to buffer (#1553)

* add const begin and end overload to buffer

since there is a const overload for data I think there should also be one for begin and end
parent 3bafd074
......@@ -633,6 +633,9 @@ template <typename T> class buffer {
T* begin() FMT_NOEXCEPT { return ptr_; }
T* end() FMT_NOEXCEPT { return ptr_ + size_; }
const T* begin() const FMT_NOEXCEPT { return ptr_; }
const T* end() const FMT_NOEXCEPT { return ptr_ + size_; }
/** Returns the size of this buffer. */
std::size_t size() const FMT_NOEXCEPT { return size_; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment