Boost.Capy

    • Introduction
    • Quick Start
    • Tutorials For Beginners
      • C++20 Coroutines, Ground Up
      • Understanding Concurrency
    • Using Capy
      • I/O Awaitables
      • I/O Buffers
      • I/O Streamables
    • Example Programs
      • Hello Task
      • Producer-Consumer
      • Buffer Composition
      • Mock Stream Testing
      • Type-Erased Echo
      • Timeout with Cancellation
      • Parallel Fetch
      • Custom Dynamic Buffer
      • Echo Server with Corosio
      • Stream Pipeline
    • Reference
  • boost::capy::make_buffer
arrow_upward

boost::capy::make_buffer

Return a buffer from a const std::span.

Synopsis

Declared in <boost/capy/buffers/make_buffer.hpp>

template<
    class T,
    std::size_t Extent>
requires (sizeof(T) == 1)
[[nodiscard]]
const_buffer
make_buffer(std::span<T const, Extent> data) noexcept;

Return Value

a buffer from a const std::span.

Created with MrDocs