[#absl-Span-2constructor-08]
= xref:absl.adoc[absl]::xref:absl/Span.adoc[Span]::Span
:relfileprefix: ../../
:mrdocs:

Constructs a read&hyphen;only span from an initializer list&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;span&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename LazyT = T,
    typename = LazyT&gt;
Span(std::initializer&lowbar;list&lt;value&lowbar;type&gt; v) noexcept;
----

== Description

The referenced array must outlive the span&semi; see the notes above&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The initializer list whose data the span refers to&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
