boost::capy::make_buffer

Return a buffer from a mutable std::span with a maximum size.

Synopsis

template<
    class T,
    std::size_t Extent>
requires (!std::is_const_v<T> && sizeof(T) == 1)
[[nodiscard]]
mutable_buffer
make_buffer(
    std::span<T, Extent> data,
    std::size_t max_size) noexcept;

Return Value

a buffer from a mutable std::span with a maximum size.

Created with MrDocs