Boost.Capy

    • Introduction
    • Quick Start
    • Introduction To C++20 Coroutines
      • Part I: Foundations
      • Part II: C++20 Syntax
      • Part III: Coroutine Machinery
      • Part IV: Advanced Topics
    • Introduction to I/O Awaitables
      • Concept Hierarchy
      • The Executor
      • The Stop Token
      • The Allocator
      • Launching Coroutines
    • Capy Library
      • The task<T> Type
      • Error Handling with io_result
      • Stream Concepts
      • Concurrent Composition
      • Cancellation
      • Synchronization Primitives
      • Executors and Strands
      • Frame Allocators
    • Buffers
      • Overview
      • Buffers and I/O
      • Buffer Types
      • Buffer Sequences
      • Buffer Algorithms
      • Dynamic Buffers
    • Testing Facilities
      • Overview
    • 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