#include <core.h>
Public Member Functions | |
auto | count () -> size_t |
counting_buffer () | |
Public Member Functions inherited from detail::buffer< char > | |
void | append (const U *begin, const U *end) |
FMT_INLINE auto | begin () const noexcept -> const char * |
FMT_INLINE auto | begin () noexcept -> char * |
buffer (const buffer &)=delete | |
constexpr auto | capacity () const noexcept -> size_t |
void | clear () |
FMT_CONSTEXPR auto | data () const noexcept -> const char * |
FMT_CONSTEXPR auto | data () noexcept -> char * |
FMT_INLINE auto | end () const noexcept -> const char * |
FMT_INLINE auto | end () noexcept -> char * |
void | operator= (const buffer &)=delete |
FMT_CONSTEXPR auto | operator[] (Idx index) -> char & |
FMT_CONSTEXPR auto | operator[] (Idx index) const -> const char & |
FMT_CONSTEXPR20 void | push_back (const char &value) |
constexpr auto | size () const noexcept -> size_t |
FMT_CONSTEXPR20 void | try_reserve (size_t new_capacity) |
FMT_CONSTEXPR20 void | try_resize (size_t count) |
Protected Member Functions | |
FMT_CONSTEXPR20 void | grow (size_t) override |
Protected Member Functions inherited from detail::buffer< char > | |
buffer (buffer &&)=default | |
FMT_CONSTEXPR20 | buffer (char *p=nullptr, size_t sz=0, size_t cap=0) noexcept |
FMT_CONSTEXPR | buffer (size_t sz) noexcept |
FMT_CONSTEXPR void | set (char *buf_data, size_t buf_capacity) noexcept |
FMT_CONSTEXPR20 | ~buffer ()=default |
Private Types | |
enum | { buffer_size = 256 } |
Private Attributes | |
size_t | count_ = 0 |
T | data_ [buffer_size] |
Additional Inherited Members | |
Public Types inherited from detail::buffer< char > | |
using | const_reference = const char & |
using | value_type = char |
|
private |
|
inline |
|
inline |
|
inlineoverrideprotectedvirtual |
Increases the buffer capacity to hold at least capacity elements.
Implements detail::buffer< char >.
|
private |
|
private |