boost::capy::ConstBufferSequence

Concept for sequences of read‐only buffer regions.

Synopsis

Declared in <boost/capy/buffers.hpp>

template<typename T>
concept ConstBufferSequence = std::is_convertible_v<T, const_buffer> || (
        std::ranges::bidirectional_range<T> &&
        std::is_convertible_v<std::ranges::range_value_t<T>, const_buffer>);

Description

A type satisfies ConstBufferSequence if it represents one or more contiguous memory regions that can be read. This includes single buffers (convertible to const_buffer) and ranges of buffers.

Syntactic Requirements

  • Convertible to `const_buffer`, OR

  • A bidirectional range with value type convertible to `const_buffer`

See Also

const_buffer, MutableBufferSequence

Created with MrDocs