#include <core.h>
Public Member Functions | |
size_t | count () const |
iterator_buffer (OutputIt out, size_t n=buffer_size) | |
OutputIt | out () |
~iterator_buffer () | |
Public Member Functions inherited from detail::buffer< T > | |
template<typename U > | |
void | append (const U *begin, const U *end) |
T * | begin () FMT_NOEXCEPT |
const T * | begin () const FMT_NOEXCEPT |
buffer (const buffer &)=delete | |
size_t | capacity () const FMT_NOEXCEPT |
void | clear () |
T * | data () FMT_NOEXCEPT |
const T * | data () const FMT_NOEXCEPT |
T * | end () FMT_NOEXCEPT |
const T * | end () const FMT_NOEXCEPT |
void | operator= (const buffer &)=delete |
template<typename I > | |
T & | operator[] (I index) |
template<typename I > | |
const T & | operator[] (I index) const |
void | push_back (const T &value) |
size_t | size () const FMT_NOEXCEPT |
void | try_reserve (size_t new_capacity) |
void | try_resize (size_t count) |
Protected Member Functions | |
void | flush () |
void | grow (size_t) final FMT_OVERRIDE |
Protected Member Functions inherited from detail::buffer< T > | |
buffer (size_t sz) FMT_NOEXCEPT | |
buffer (T *p=nullptr, size_t sz=0, size_t cap=0) FMT_NOEXCEPT | |
void | set (T *buf_data, size_t buf_capacity) FMT_NOEXCEPT |
~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 |
|
protected |
|
inlinefinalprotectedvirtual |
Increases the buffer capacity to hold at least capacity elements.
Implements detail::buffer< T >.
|
inline |
|
private |
|
private |