#include <core.h>
Public Member Functions | |
auto | count () const -> size_t |
iterator_buffer (iterator_buffer &&other) | |
iterator_buffer (OutputIt out, size_t n=buffer_size) | |
auto | out () -> OutputIt |
~iterator_buffer () | |
Public Member Functions inherited from detail::buffer_traits | |
buffer_traits (size_t) | |
auto | count () const -> size_t |
auto | limit (size_t size) -> size_t |
Public Member Functions inherited from detail::buffer< T > | |
template<typename U > | |
void | append (const U *begin, const U *end) |
FMT_INLINE auto | begin () const noexcept -> const T * |
FMT_INLINE auto | begin () noexcept -> T * |
buffer (const buffer &)=delete | |
constexpr auto | capacity () const noexcept -> size_t |
void | clear () |
FMT_CONSTEXPR auto | data () const noexcept -> const T * |
FMT_CONSTEXPR auto | data () noexcept -> T * |
FMT_INLINE auto | end () const noexcept -> const T * |
FMT_INLINE auto | end () noexcept -> T * |
void | operator= (const buffer &)=delete |
template<typename Idx > | |
FMT_CONSTEXPR auto | operator[] (Idx index) -> T & |
template<typename Idx > | |
FMT_CONSTEXPR auto | operator[] (Idx index) const -> const T & |
FMT_CONSTEXPR20 void | push_back (const T &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 | |
void | flush () |
FMT_CONSTEXPR20 void | grow (size_t) override |
Protected Member Functions inherited from detail::buffer< T > | |
buffer (buffer &&)=default | |
FMT_CONSTEXPR | buffer (size_t sz) noexcept |
FMT_CONSTEXPR20 | buffer (T *p=nullptr, size_t sz=0, size_t cap=0) noexcept |
FMT_CONSTEXPR void | set (T *buf_data, size_t buf_capacity) noexcept |
FMT_CONSTEXPR20 | ~buffer ()=default |
Private Types | |
enum | { buffer_size = 256 } |
Private Attributes | |
T | data_ [buffer_size] |
OutputIt | out_ |
Additional Inherited Members | |
Public Types inherited from detail::buffer< T > | |
using | const_reference = const T & |
using | value_type = T |
|
private |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineoverrideprotectedvirtual |
Increases the buffer capacity to hold at least capacity elements.
Implements detail::buffer< T >.
|
inline |
|
private |
|
private |