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 Reference
Inheritance diagram for basic_memory_buffer< T, SIZE, Allocator >:
![]()
Detailed Descriptiontemplate<typename T, std::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 , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
◆ value_type
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Constructor & Destructor Documentation◆ basic_memory_buffer() [1/2]
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 616 of file format.h. References buffer< T >::set(). ◆ ~basic_memory_buffer()
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 620 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::deallocate(). ◆ basic_memory_buffer() [2/2]
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
\rst Constructs a :class: Definition at line 649 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::move(). Member Function Documentation◆ deallocate()
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 604 of file format.h. References 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 , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
◆ grow()
template<typename T , std::size_t SIZE, typename Allocator >
Implements buffer< T >. Definition at line 668 of file format.h. References internal::make_checked(). ◆ move()
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 624 of file format.h. References buffer< T >::capacity(), buffer< T >::data(), internal::make_checked(), buffer< T >::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 , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
\rst Moves the content of the other Definition at line 656 of file format.h. References basic_memory_buffer< T, SIZE, Allocator >::deallocate(), FMT_ASSERT, and basic_memory_buffer< T, SIZE, Allocator >::move(). Member Data Documentation◆ store_
template<typename T , std::size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>>
Definition at line 601 of file format.h. Referenced by basic_memory_buffer< T, SIZE, Allocator >::deallocate(), and basic_memory_buffer< T, SIZE, Allocator >::move().
|