[#DataStream-operator_subs-0b] = xref:DataStream.adoc[DataStream]::operator[] :relfileprefix: ../ :mrdocs: Return a const reference to the unread element at `pos`. == Synopsis Declared in `<streams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:DataStream/const_reference.adoc[const_reference] operator[](xref:DataStream/size_type.adoc[size_type] pos) const; ---- == Return Value A const reference to the unread element at `pos`. == Parameters [cols="1,4"] |=== | Name| Description | *pos* | Index of the unread element, relative to the read position. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#