Share via


move_iterator::operator*

Dereferences the stored iterator and returns the value. This behaves like an rvalue reference and performs a move assignment. The operator transfers the current element out of the base iterator. The element that follows becomes the new current element.

reference operator*() const;

Property Value/Return Value

Returns the current element in the manner of an rvalue reference where the element is moved out of the base iterator.

Remarks

The operator returns (reference)*base().

Requirements

Header: <iterator>

Namespace: std

See Also

Reference

move_iterator::reference

move_iterator Class

<iterator>

Lvalues and Rvalues

Standard Template Library

Other Resources

move_iterator Members

<iterator> Members