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

Adapts a pair of iterators into a container&hyphen;like object for `AnySpan`&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;
class Range;
----

== Description

Useful when faced with a range or view of random access iterators&period; `Iter` must be a valid random access iterator&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/any_span_adaptor/Range/2constructor.adoc[`Range`]         [.small]#[constructor]#
| Constructs a range over `&lsqb;begin, end)&rsqb;`&period;
| xref:absl/any_span_adaptor/Range/operator_subs.adoc[`operator&lsqb;&rsqb;`] 
| Returns the element at index `i`&period;
| xref:absl/any_span_adaptor/Range/size.adoc[`size`] 
| Returns the number of elements in the range&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/any_span_adaptor/MakeAdaptorFromRange.adoc[`MakeAdaptorFromRange`]
| Returns a `Range` adaptor wrapping the given pair of iterators&period;
| xref:absl/any_span_adaptor/MakeAdaptorFromView.adoc[`MakeAdaptorFromView`]
| Returns a `Range` adaptor wrapping the given view&period;
|===


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