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

Represents a chunked string as a linked list of string views. More...

#include <chunked_string.hpp>

Public Types

using node_type = detail::mbr_list_node<std::string_view>
 
using const_iterator = detail::mbr_list_iterator<const std::string_view>
 

Public Member Functions

 chunked_string (const node_type *head) noexcept
 
auto begin () const noexcept
 Returns an iterator to the first chunk.
 
auto end () const noexcept
 Returns the past-the-end iterator.
 
size_t size () const noexcept
 Returns the size of the string, i.e., the sum of all chunk sizes.
 
template<class OutputIterator >
OutputIterator copy_to (OutputIterator out) const
 Copies the chunked string to an output iterator.
 
template<class OutputIterator >
OutputIterator copy_quoted_to (OutputIterator out) const
 Copies the quoted representation of the chunked string to an output iterator.
 

Detailed Description

Represents a chunked string as a linked list of string views.


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