##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::move_iterator::operator*,->

From cppreference.com
< cpp‎ | iterator‎ | move iterator

reference operator* () const; | (1) |
pointer operator->() const; | (2) |

Returns a rvalue-reference or pointer to the current element.

1) Equivalent to std::move(*current);
2) Equivalent to current.

### [edit] Parameters

(none)

### [edit] Return value

Rvalue-reference or pointer to the current element.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

operator[] | obtains rvalue reference to indexed element (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_iterator/operator*&oldid=57988"
Category:

- Todo no example