DataStream::operator[]

Subscript operators

Synopses

Declared in <streams.h>

Return a const reference to the unread element at pos.

const_reference
operator[](size_type pos) const;
» more...

Return a reference to the unread element at pos.

reference
operator[](size_type pos);
» more...

Return Value

  • A const reference to the unread element at pos.
  • A reference to the unread element at pos.

Parameters

NameDescription
posIndex of the unread element, relative to the read position.