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::tag_invoke
arrow_upward

boost::capy::tag_invoke

Slice customization point for tag_invoke.

Synopsis

Declared in <boost/capy/buffers.hpp>

void
tag_invoke(
    slice_tag const&,
    const_buffer& b,
    slice_how how,
    std::size_t n) noexcept;

Parameters

Name Description

b

A reference to a contiguous region of read‐only memory.

how

Constants for slice customization.

Created with MrDocs