absl::Span::Span

Constructs a read-only span from an initializer list.

Synopsis

Declared in <absl/types/span.h>

template<
    typename LazyT = T,
    typename = LazyT>
Span(std::initializer_list<value_type> v) noexcept;

Description

The referenced array must outlive the span; see the notes above.

Parameters

NameDescription
vThe initializer list whose data the span refers to.