Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Protected Member Functions |
Private Member Functions |
Private Attributes |
List of all members
basic_memory_buffer< T, SIZE, Allocator > Class Template Referencefinal
Inheritance diagram for basic_memory_buffer< T, SIZE, Allocator >:
![]()
Detailed Descriptiontemplate<typename T, size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>> class basic_memory_buffer< T, SIZE, Allocator > \rst A dynamically growing memory buffer for trivially copyable/constructible types with the first You can use one of the following type aliases for common character types: +-------------—+---------------------------—+ | Type | Definition | +================+==============================+ | memory_buffer | basic_memory_buffer<char> | +-------------—+---------------------------—+ | wmemory_buffer | basic_memory_buffer<wchar_t> | +-------------—+---------------------------—+ Example**:: fmt::memory_buffer out; format_to(out, "The answer is {}.", 42); This will append the following output to the .. code-block:: none The answer is 42. The output can be converted to an Member Typedef Documentation◆ const_reference
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
◆ value_type
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Constructor & Destructor Documentation◆ basic_memory_buffer() [1/2]
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 674 of file format.h. References buffer< T >::set(). ◆ ~basic_memory_buffer()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 678 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::deallocate(). ◆ basic_memory_buffer() [2/2]
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
\rst Constructs a :class: Definition at line 706 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::move(). Member Function Documentation◆ append()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
template<typename ContiguousRange >
Definition at line 735 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::append(). Referenced by basic_memory_buffer< T, SIZE, Allocator >::append(). ◆ deallocate()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 662 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::alloc_, buffer< T >::capacity(), buffer< T >::data(), and basic_memory_buffer< T, SIZE, Allocator >::store_. Referenced by basic_memory_buffer< T, SIZE, Allocator >::operator=(), and basic_memory_buffer< T, SIZE, Allocator >::~basic_memory_buffer(). ◆ get_allocator()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 721 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::alloc_. ◆ grow()
template<typename T , size_t SIZE, typename Allocator >
Implements buffer< T >. ◆ move()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 682 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::alloc_, buffer< T >::capacity(), buffer< T >::data(), detail::make_checked(), basic_memory_buffer< T, SIZE, Allocator >::resize(), buffer< T >::set(), buffer< T >::size(), and basic_memory_buffer< T, SIZE, Allocator >::store_. Referenced by basic_memory_buffer< T, SIZE, Allocator >::basic_memory_buffer(), and basic_memory_buffer< T, SIZE, Allocator >::operator=(). ◆ operator=()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
\rst Moves the content of the other Definition at line 713 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::deallocate(), FMT_ASSERT, and basic_memory_buffer< T, SIZE, Allocator >::move(). ◆ reserve()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Increases the buffer capacity to new_capacity. Definition at line 730 of file format.h. References buffer< T >::try_reserve(). Referenced by formatter< std::tm, Char >::format(). ◆ resize()
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Resizes the buffer to contain count elements. If T is a POD type new elements may not be initialized. Definition at line 727 of file format.h. References buffer< T >::try_resize(). Referenced by bigint::align(), bigint::assign(), bigint::assign(), formatter< std::tm, Char >::format(), format_system_error(), basic_memory_buffer< T, SIZE, Allocator >::move(), bigint::remove_leading_zeros(), and bigint::square(). Member Data Documentation◆ alloc_
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 659 of file format.h. Referenced by basic_memory_buffer< T, SIZE, Allocator >::deallocate(), basic_memory_buffer< T, SIZE, Allocator >::get_allocator(), and basic_memory_buffer< T, SIZE, Allocator >::move(). ◆ store_
template<typename T , size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 656 of file format.h. Referenced by basic_memory_buffer< T, SIZE, Allocator >::deallocate(), and basic_memory_buffer< T, SIZE, Allocator >::move().
|