boost::capy::dynamic_buffer

Create a dynamic buffer from a vector.

Synopsis

template<
    class T,
    class Allocator>
requires std::is_fundamental_v<T> && (sizeof(T) == 1)
basic_vector_dynamic_buffer<T, Allocator>
dynamic_buffer(
    std::vector<T, Allocator>& v,
    std::size_t max_size = std::size_t(‐1));

Return Value

A vector_dynamic_buffer wrapping the vector.

Parameters

Name Description

v

The vector to wrap. Element type must be a fundamental type with sizeof 1.

max_size

Optional maximum size limit.

Created with MrDocs