[#prevector-01-operator_subs-04]
= xref:prevector-01.adoc[prevector&lt;36, unsigned char&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../
:mrdocs:

Subscript operators

== Synopses

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

Returns a reference to the element at position `pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char&
xref:prevector-01/operator_subs-05.adoc[operator&lsqb;&rsqb;](xref:prevector-01/size_type.adoc[size&lowbar;type] pos);
----

[.small]#xref:prevector-01/operator_subs-05.adoc[_» more&period;&period;&period;_]#

Returns a const reference to the element at position `pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const&
xref:prevector-01/operator_subs-08.adoc[operator&lsqb;&rsqb;](xref:prevector-01/size_type.adoc[size&lowbar;type] pos) const;
----

[.small]#xref:prevector-01/operator_subs-08.adoc[_» more&period;&period;&period;_]#

== Return Value

* A reference to the element at that position&period;
* A const reference to the element at that position&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| The index of the element to access&period;
|===


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