[#prevector-0c-const_iterator] = xref:prevector-0c.adoc[prevector]::const_iterator :relfileprefix: ../ :mrdocs: Read‐only contiguous iterator over the container's elements. == Synopsis Declared in `<prevector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class const_iterator; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:prevector-0c/const_iterator/difference_type.adoc[`difference_type`] | Signed type used to represent distances between iterators. | xref:prevector-0c/const_iterator/element_type.adoc[`element_type`] | Element type this iterator refers to. | xref:prevector-0c/const_iterator/iterator_category.adoc[`iterator_category`] | Iterator category tag: models a contiguous iterator. | xref:prevector-0c/const_iterator/pointer.adoc[`pointer`] | Pointer to the const element type. | xref:prevector-0c/const_iterator/reference.adoc[`reference`] | Reference to the const element type. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:prevector-0c/const_iterator/2constructor-04c.adoc[`const_iterator`] [.small]#[constructor]# | Constructors | xref:prevector-0c/const_iterator/operator_star.adoc[`operator*`] | Returns a reference to the pointed‐to element. | xref:prevector-0c/const_iterator/operator_plus.adoc[`operator+`] | Returns an iterator advanced by `n` elements. | xref:prevector-0c/const_iterator/operator_inc-04.adoc[`operator++`] | Increment operators | xref:prevector-0c/const_iterator/operator_plus_eq.adoc[`operator+=`] | Advances this iterator by `n` elements. | xref:prevector-0c/const_iterator/operator_minus.adoc[`operator‐`] | Returns an iterator moved back by `n` elements. | xref:prevector-0c/const_iterator/operator_dec-06.adoc[`operator‐‐`] | Decrement operators | xref:prevector-0c/const_iterator/operator_minus_eq.adoc[`operator‐=`] | Moves this iterator back by `n` elements. | xref:prevector-0c/const_iterator/operator_ptr.adoc[`operator‐>`] | Returns a pointer to the pointed‐to element. | xref:prevector-0c/const_iterator/operator_subs.adoc[`operator[]`] | Returns a reference to the element at offset `pos`. | xref:prevector-0c/const_iterator/operator_eq.adoc[`operator==`] | Returns whether two iterators refer to the same element. | xref:prevector-0c/const_iterator/operator_3way.adoc[`operator<=>`] | Orders two iterators by the addresses they refer to. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:operator_plus-04.adoc[operator+]` | Returns an iterator advanced by `n` elements. | `xref:operator_minus-05.adoc[operator‐]` | Returns the distance between two iterators. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#