Constructs a mutable span from a container.

Synopsis

Declared in <absl/types/span.h>

template<
    typename V,
    typename = EnableIfConvertibleFrom<V>,
    typename = V,
    typename = span_internal::EnableIfNotIsView<V>>
explicit
Span(V& v) noexcept;

Description

Can be replaced with MakeSpan() to infer the type parameter.

Parameters

Name

Description

v

The container whose data the span refers to.

Created with MrDocs