![]() |
Livox SDK API
V2.2.0
|
#include <format.h>
Public Types | |
| typedef T | value_type |
| typedef const T & | const_reference |
Public Types inherited from fmt::v5::internal::basic_buffer< T > | |
| typedef T | value_type |
| typedef const T & | const_reference |
Public Member Functions | |
| basic_memory_buffer (const Allocator &alloc=Allocator()) | |
| ~basic_memory_buffer () | |
| basic_memory_buffer (basic_memory_buffer &&other) | |
| basic_memory_buffer & | operator= (basic_memory_buffer &&other) |
| Allocator | get_allocator () const |
Public Member Functions inherited from fmt::v5::internal::basic_buffer< T > | |
| virtual | ~basic_buffer () |
| T * | begin () throw () |
| T * | end () throw () |
| std::size_t | size () const throw () |
| std::size_t | capacity () const throw () |
| T * | data () throw () |
| const T * | data () const throw () |
| void | resize (std::size_t new_size) |
| void | clear () |
| void | reserve (std::size_t new_capacity) |
| void | push_back (const T &value) |
| template<typename U > | |
| void | append (const U *begin, const U *end) |
| T & | operator[] (std::size_t index) |
| const T & | operator[] (std::size_t index) const |
Protected Member Functions | |
| void | grow (std::size_t size) |
Protected Member Functions inherited from fmt::v5::internal::basic_buffer< T > | |
| basic_buffer (std::size_t sz) throw () | |
| basic_buffer (T *p=NULL, std::size_t sz=0, std::size_t cap=0) throw () | |
| void | set (T *buf_data, std::size_t buf_capacity) throw () |
A dynamically growing memory buffer for trivially copyable/constructible types with the first SIZE elements stored in the object itself.
You can use one of the following typedefs 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 out object:
.. code-block:: none
The answer is 42.
The output can be converted to an std::string with to_string(out).
| typedef const T& fmt::v5::basic_memory_buffer< T, SIZE, Allocator >::const_reference |
| typedef T fmt::v5::basic_memory_buffer< T, SIZE, Allocator >::value_type |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
Increases the buffer capacity to hold at least capacity elements.
Implements fmt::v5::internal::basic_buffer< T >.
|
inline |
Moves the content of the other basic_memory_buffer object to this one.