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
This commit is contained in:
1 parent
3bafd0749b
commit
0415cf2350
1 file changed
+3
@@ -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_; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user