[#absl-any_span_adaptor-MakeAdaptorFromView]
= xref:absl.adoc[absl]::xref:absl/any_span_adaptor.adoc[any&lowbar;span&lowbar;adaptor]::MakeAdaptorFromView
:relfileprefix: ../../
:mrdocs:

Returns a `Range` adaptor wrapping the given view&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename View&gt;
xref:absl/any_span_adaptor/Range.adoc[Range&lt;decltype(view&period;begin())&gt;]
MakeAdaptorFromView(View& view);
----

== Description

The view&apos;s `begin()` and `end()` must return valid random access iterators&period; The return value must outlive any spans that use it&period;

== Return Value

A `Range` over the view&apos;s elements&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *view*
| The view to adapt&period;
|===


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