[#prevector-0c-operator_subs-08] = xref:prevector-0c.adoc[prevector]::operator[] :relfileprefix: ../ :mrdocs: Subscript operators == Synopses Declared in `<prevector.h>` Returns a reference to the element at position `pos`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T& xref:prevector-0c/operator_subs-0c.adoc[operator[]](xref:prevector-0c/size_type.adoc[size_type] pos); ---- [.small]#xref:prevector-0c/operator_subs-0c.adoc[_» more..._]# Returns a const reference to the element at position `pos`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T const& xref:prevector-0c/operator_subs-00.adoc[operator[]](xref:prevector-0c/size_type.adoc[size_type] pos) const; ---- [.small]#xref:prevector-0c/operator_subs-00.adoc[_» more..._]# == Return Value * A reference to the element at that position. * A const reference to the element at that position. == Parameters [cols="1,4"] |=== | Name| Description | *pos* | The index of the element to access. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#