[#DataStream-operator_subs-0e]
= xref:DataStream.adoc[DataStream]::operator&lsqb;&rsqb;
:relfileprefix: ../
:mrdocs:

Subscript operators

== Synopses

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

Return a const reference to the unread element at `pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:DataStream/const_reference.adoc[const&lowbar;reference]
xref:DataStream/operator_subs-0b.adoc[operator&lsqb;&rsqb;](xref:DataStream/size_type.adoc[size&lowbar;type] pos) const;
----

[.small]#xref:DataStream/operator_subs-0b.adoc[_» more&period;&period;&period;_]#

Return a reference to the unread element at `pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:DataStream/reference.adoc[reference]
xref:DataStream/operator_subs-06.adoc[operator&lsqb;&rsqb;](xref:DataStream/size_type.adoc[size&lowbar;type] pos);
----

[.small]#xref:DataStream/operator_subs-06.adoc[_» more&period;&period;&period;_]#

== Return Value

* A const reference to the unread element at `pos`&period;
* A reference to the unread element at `pos`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| Index of the unread element, relative to the read position&period;
|===


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