#include <core.h>
Public Types | |
using | const_reference = const T & |
using | value_type = T |
Public Member Functions | |
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 | |
buffer (size_t sz) FMT_NOEXCEPT | |
buffer (T *p=nullptr, size_t sz=0, size_t cap=0) FMT_NOEXCEPT | |
virtual void | grow (size_t capacity)=0 |
void | set (T *buf_data, size_t buf_capacity) FMT_NOEXCEPT |
~buffer ()=default | |
Private Attributes | |
size_t | capacity_ |
T * | ptr_ |
size_t | size_ |
A contiguous memory buffer with an optional growing ability. It is an internal class and shouldn't be used directly, only via ~fmtbasic_memory_buffer
.
using detail::buffer< T >::const_reference = const T& |
using detail::buffer< T >::value_type = T |
|
inlineprotected |
|
inlineprotected |
|
protecteddefault |
|
delete |
void detail::buffer< T >::append | ( | const U * | begin, |
const U * | end | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implemented in detail::counting_buffer< T >, detail::iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >, detail::iterator_buffer< T *, T >, detail::iterator_buffer< OutputIt, T, Traits >, basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< bigit, bigits_capacity >, basic_memory_buffer< Char >, and basic_memory_buffer< wchar_t >.
|
delete |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |