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

Returns a `Range` adaptor wrapping the given pair of iterators&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 Iter&gt;
xref:absl/any_span_adaptor/Range.adoc[Range&lt;Iter&gt;]
MakeAdaptorFromRange(
    Iter begin,
    Iter end);
----

== Description

The return value must outlive any spans that use it&period; `Iter` must be a valid random access iterator&period;

== Return Value

A `Range` over `&lsqb;begin, end)&rsqb;`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *begin*
| Iterator to the first element&period;
| *end*
| Iterator just past the last element&period;
|===


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