boost::capy::buffer_array::buffer_array

Constructors

Synopses

Default constructor.

buffer_array() noexcept;

Copy constructor.

buffer_array(buffer_array const& other) noexcept;

Construct from a single buffer.

buffer_array(value_type const& b) noexcept;

Construct from a buffer sequence.

template<class BS>
requires (IsConst ? ConstBufferSequence<BS> : MutableBufferSequence<BS>)
            && (!std::same_as<std::remove_cvref_t<BS>, buffer_array>)
            && (!std::same_as<std::remove_cvref_t<BS>, value_type>)
buffer_array(BS const& bs) noexcept;

Construct from an iterator range.

template<class Iterator>
buffer_array(
    Iterator first,
    Iterator last) noexcept;

Construct from a buffer sequence with overflow checking.

template<class BS>
requires (IsConst ? ConstBufferSequence<BS> : MutableBufferSequence<BS>)
buffer_array(
    std::in_place_t,
    BS const& bs);

Construct from an iterator range with overflow checking.

template<class Iterator>
buffer_array(
    std::in_place_t,
    Iterator first,
    Iterator last);

Exceptions

Name

Thrown on

std::length_error

if the sequence contains more than N non‐empty buffers.

Parameters

Name Description

b

The buffer to store.

bs

The buffer sequence to copy from.

first

Iterator to the first buffer descriptor.

last

Iterator past the last buffer descriptor.

Created with MrDocs