[#prevector-0c-const_iterator]
= xref:prevector-0c.adoc[prevector]::const&lowbar;iterator
:relfileprefix: ../
:mrdocs:

Read&hyphen;only contiguous iterator over the container&apos;s elements&period;

== Synopsis

Declared in `&lt;prevector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class const&lowbar;iterator;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:prevector-0c/const_iterator/difference_type.adoc[`difference&lowbar;type`] 
| Signed type used to represent distances between iterators&period;
| xref:prevector-0c/const_iterator/element_type.adoc[`element&lowbar;type`] 
| Element type this iterator refers to&period;
| xref:prevector-0c/const_iterator/iterator_category.adoc[`iterator&lowbar;category`] 
| Iterator category tag&colon; models a contiguous iterator&period;
| xref:prevector-0c/const_iterator/pointer.adoc[`pointer`] 
| Pointer to the const element type&period;
| xref:prevector-0c/const_iterator/reference.adoc[`reference`] 
| Reference to the const element type&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:prevector-0c/const_iterator/2constructor-04c.adoc[`const&lowbar;iterator`]         [.small]#[constructor]#
| Constructors
| xref:prevector-0c/const_iterator/operator_star.adoc[`operator&ast;`] 
| Returns a reference to the pointed&hyphen;to element&period;
| xref:prevector-0c/const_iterator/operator_plus.adoc[`operator&plus;`] 
| Returns an iterator advanced by `n` elements&period;
| xref:prevector-0c/const_iterator/operator_inc-04.adoc[`operator&plus;&plus;`] 
| Increment operators
| xref:prevector-0c/const_iterator/operator_plus_eq.adoc[`operator&plus;&equals;`] 
| Advances this iterator by `n` elements&period;
| xref:prevector-0c/const_iterator/operator_minus.adoc[`operator&hyphen;`] 
| Returns an iterator moved back by `n` elements&period;
| xref:prevector-0c/const_iterator/operator_dec-06.adoc[`operator&hyphen;&hyphen;`] 
| Decrement operators
| xref:prevector-0c/const_iterator/operator_minus_eq.adoc[`operator&hyphen;&equals;`] 
| Moves this iterator back by `n` elements&period;
| xref:prevector-0c/const_iterator/operator_ptr.adoc[`operator&hyphen;&gt;`] 
| Returns a pointer to the pointed&hyphen;to element&period;
| xref:prevector-0c/const_iterator/operator_subs.adoc[`operator&lsqb;&rsqb;`] 
| Returns a reference to the element at offset `pos`&period;
| xref:prevector-0c/const_iterator/operator_eq.adoc[`operator&equals;&equals;`] 
| Returns whether two iterators refer to the same element&period;
| xref:prevector-0c/const_iterator/operator_3way.adoc[`operator&lt;&equals;&gt;`] 
| Orders two iterators by the addresses they refer to&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:operator_plus-04.adoc[operator&plus;]`
| Returns an iterator advanced by `n` elements&period;
| `xref:operator_minus-05.adoc[operator&hyphen;]`
| Returns the distance between two iterators&period;
|===


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