C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::chunked_string_builder Class Reference

Builds a chunked string by allocating each chunk on a monotonic buffer. More...

#include <chunked_string.hpp>

Public Types

using list_type = detail::mbr_list<std::string_view>
 
using resource_type = detail::monotonic_buffer_resource
 

Public Member Functions

 chunked_string_builder (resource_type *resource) noexcept
 
void append (char ch)
 Appends a character to the current chunk or creates a new chunk if the current chunk reached its capacity.
 
chunked_string build ()
 Seals the current chunk and returns the first chunk.
 

Static Public Attributes

static constexpr size_t chunk_size = 128
 The size of a single chunk.
 

Detailed Description

Builds a chunked string by allocating each chunk on a monotonic buffer.


The documentation for this class was generated from the following files: