mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-02 06:20:09 +00:00
Clarify that data is not null-terminated
This commit is contained in:
parent
72dc4491ea
commit
dd5a9691f9
@ -836,10 +836,8 @@ template <typename T> class buffer {
|
|||||||
/** Returns the capacity of this buffer. */
|
/** Returns the capacity of this buffer. */
|
||||||
constexpr auto capacity() const noexcept -> size_t { return capacity_; }
|
constexpr auto capacity() const noexcept -> size_t { return capacity_; }
|
||||||
|
|
||||||
/** Returns a pointer to the buffer data. */
|
/** Returns a pointer to the buffer data (not null-terminated). */
|
||||||
FMT_CONSTEXPR auto data() noexcept -> T* { return ptr_; }
|
FMT_CONSTEXPR auto data() noexcept -> T* { return ptr_; }
|
||||||
|
|
||||||
/** Returns a pointer to the buffer data. */
|
|
||||||
FMT_CONSTEXPR auto data() const noexcept -> const T* { return ptr_; }
|
FMT_CONSTEXPR auto data() const noexcept -> const T* { return ptr_; }
|
||||||
|
|
||||||
/** Clears this buffer. */
|
/** Clears this buffer. */
|
||||||
|
Loading…
Reference in New Issue
Block a user