#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) |
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 | |
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 |
virtual FMT_CONSTEXPR20 void | grow (size_t capacity)=0 |
FMT_CONSTEXPR void | set (T *buf_data, size_t buf_capacity) noexcept |
FMT_CONSTEXPR20 | ~buffer ()=default |
Private Attributes | |
size_t | capacity_ |
T * | ptr_ |
size_t | size_ |
\rst 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
. \endrst
using detail::buffer< T >::const_reference = const T& |
using detail::buffer< T >::value_type = T |
|
inlineprotectednoexcept |
|
inlineprotectednoexcept |
|
protecteddefault |
|
protecteddefault |
|
delete |
void detail::buffer< T >::append | ( | const U * | begin, |
const U * | end | ||
) |
Appends data to the end of the buffer.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implemented in detail::counting_buffer< T >, detail::iterator_buffer< T *, T >, detail::iterator_buffer< T *, T, fixed_buffer_traits >, detail::iterator_buffer< OutputIt, T, Traits >, basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< bigit, bigits_capacity >, basic_memory_buffer< wchar_t >, and detail::iterator_buffer< std::back_insert_iterator< Container >, enable_if_t< is_contiguous< Container >::value, typename Container::value_type > >.
|
delete |
|
inline |
|
inline |
|
inline |
|
inlineprotectednoexcept |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
private |
|
private |
|
private |