std::move_iterator::operators
STD:移动[医]迭代器::运算符%2A->
| (1) | |
---|---|---|
reference operator* () const; | (until C++17) | |
constexpr reference operator* () const; | (since C++17) | |
| (2) | |
pointer operator->() const; | (until C++17) | |
constexpr pointer operator->() const; | (since C++17) |
返回指向当前元素的rvalue引用或指针。
1) Equivalent to std::move(*current | (until C++17) |
---|---|
1) Equivalent to static_cast<reference>(*current | (since C++17) |
2%29相当于current
...
参数
%280%29
返回值
Rvalue-指向当前元素的引用或指针。
例
另见
operator[] | accesses an element by index (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/iterator/move[医]迭代器/算子[医]星[医]