Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::istream_iterator<T,CharT,Traits,Distance>::operator*, operator->

Returns a pointer or a reference to the current element.

NotebookLM
const T& operator*() const;
(1)
const T* operator->() const;
(2)

Returns a pointer or a reference to the current element.

The behavior is undefined if the iterator is end-of-stream iterator.

Parameters

(none)

Return value

A pointer or a reference to the current element.

Exceptions

May throw implementation-defined exceptions.

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.