Scroll to navigation

std::istream_iterator::operator*,operator->(3) C++ Standard Libary std::istream_iterator::operator*,operator->(3)

NAME

std::istream_iterator::operator*,operator-> - std::istream_iterator::operator*,operator->

Synopsis

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.

2026.11.10 http://cppreference.com