[#absl-AnySpan-const_iterator]
= xref:absl.adoc[absl]::xref:absl/AnySpan.adoc[AnySpan]::const&lowbar;iterator
:relfileprefix: ../../
:mrdocs:

Random&hyphen;access iterator over the const elements of an `AnySpan`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class const&lowbar;iterator
    : public xref:absl/AnySpan.adoc[IteratorBase&lt;const&lowbar;iterator, std::add&lowbar;const&lowbar;t&lt;T&gt;&gt;]
----

== Description

Also supports implicit conversion from a mutable `iterator`&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:absl/AnySpan.adoc[IteratorBase&lt;const&lowbar;iterator, std::add&lowbar;const&lowbar;t&lt;T&gt;&gt;]`
| 
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:absl/AnySpan/const_iterator/difference_type-03.adoc[`difference&lowbar;type`] 
| A signed type used for iterator differences&period;
| xref:absl/AnySpan/const_iterator/iterator_category-01.adoc[`iterator&lowbar;category`] 
| The iterator category (random access)&period;
| xref:absl/AnySpan/const_iterator/pointer-0f.adoc[`pointer`] 
| A pointer to an element&period;
| xref:absl/AnySpan/const_iterator/reference-03.adoc[`reference`] 
| A reference to an element&period;
| xref:absl/AnySpan/const_iterator/value_type-037.adoc[`value&lowbar;type`] 
| The element type with const removed&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:absl/AnySpan/const_iterator/2constructor-040.adoc[`const&lowbar;iterator`]         [.small]#[constructor]#
| Constructors
| xref:absl/AnySpan/const_iterator/operator_star.adoc[`operator&ast;`] 
| Dereferences the iterator&period;
| xref:absl/AnySpan/const_iterator/operator_plus.adoc[`operator&plus;`] 
| Returns an iterator advanced by `d` positions&period;
| xref:absl/AnySpan/const_iterator/operator_inc-00.adoc[`operator&plus;&plus;`] 
| Advances the iterator by one position&period;
| xref:absl/AnySpan/const_iterator/operator_plus_eq.adoc[`operator&plus;&equals;`] 
| Advances the iterator by `d` positions&period;
| xref:absl/AnySpan/const_iterator/operator_minus-04.adoc[`operator&hyphen;`] 
| Subtraction operators
| xref:absl/AnySpan/const_iterator/operator_dec-09.adoc[`operator&hyphen;&hyphen;`] 
| Moves the iterator back by one position&period;
| xref:absl/AnySpan/const_iterator/operator_minus_eq.adoc[`operator&hyphen;&equals;`] 
| Moves the iterator back by `d` positions&period;
| xref:absl/AnySpan/const_iterator/operator_ptr.adoc[`operator&hyphen;&gt;`] 
| Accesses members of the current element&period;
| xref:absl/AnySpan/const_iterator/operator_subs.adoc[`operator&lsqb;&rsqb;`] 
| Accesses the element `i` positions from the current one&period;
|===


== Using Declarations

[cols="1"]
|===
| Name
| xref:absl/AnySpan/const_iterator/difference_type-05.adoc[`difference&lowbar;type`] 
| xref:absl/AnySpan/const_iterator/iterator_category-09.adoc[`iterator&lowbar;category`] 
| xref:absl/AnySpan/const_iterator/pointer-0c.adoc[`pointer`] 
| xref:absl/AnySpan/const_iterator/reference-00.adoc[`reference`] 
| xref:absl/AnySpan/const_iterator/value_type-03a.adoc[`value&lowbar;type`] 
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:absl/AnySpan/const_iterator/container_.adoc[`container&lowbar;`] 
| The span this iterator points into&period;
| xref:absl/AnySpan/const_iterator/index_.adoc[`index&lowbar;`] 
| The current element index&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:absl/AnySpan.adoc[absl::AnySpan]`
| A type&hyphen;erased, non&hyphen;owning view over a random&hyphen;access sequence&period;
|===


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