HDK
|
#include <core.h>
Public Types | |
using | value_type = T |
using | const_reference = const T & |
Public Member Functions | |
buffer (const buffer &)=delete | |
void | operator= (const buffer &)=delete |
auto | begin () FMT_NOEXCEPT-> T * |
auto | end () FMT_NOEXCEPT-> T * |
auto | begin () const FMT_NOEXCEPT-> const T * |
auto | end () const FMT_NOEXCEPT-> const T * |
auto | size () const FMT_NOEXCEPT-> size_t |
auto | capacity () const FMT_NOEXCEPT-> size_t |
auto | data () FMT_NOEXCEPT-> T * |
auto | data () const FMT_NOEXCEPT-> const T * |
void | clear () |
void | try_resize (size_t count) |
void | try_reserve (size_t new_capacity) |
void | push_back (const T &value) |
template<typename U > | |
void | append (const U *begin, const U *end) |
template<typename I > | |
auto | operator[] (I index) -> T & |
template<typename I > | |
auto | operator[] (I index) const -> const T & |
Protected Member Functions | |
buffer (size_t sz) FMT_NOEXCEPT | |
buffer (T *p=nullptr, size_t sz=0, size_t cap=0) FMT_NOEXCEPT | |
~buffer ()=default | |
buffer (buffer &&)=default | |
void | set (T *buf_data, size_t buf_capacity) FMT_NOEXCEPT |
virtual void | grow (size_t capacity)=0 |
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 buffer< T >::const_reference = const T& |
Increases the buffer capacity to hold at least capacity elements.
Implemented in counting_buffer< T >, iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >, iterator_buffer< T *, T >, and iterator_buffer< OutputIt, T, Traits >.