std::vector<T,Allocator>::rend, std::vector<T,Allocator>::crend_C++中文网
位置:首页 > C++ 参考手册 >容器库 >std::vector > std::vector<T,Allocator>::rend, std::vector<T,Allocator>::crend
| reverse_iterator rend(); |
(C++11 前) | |
| reverse_iterator rend() noexcept; |
(C++11 起) | |
| const_reverse_iterator rend() const; |
(C++11 前) | |
| const_reverse_iterator rend() const noexcept; |
(C++11 起) | |
| const_reverse_iterator crend() const noexcept; |
(C++11 起) | |
返回指向逆向 vector 末元素后一元素的逆向迭代器。它对应非逆向 vector 首元素的前一元素。此元素表现为占位符,试图访问它导致未定义行为。
参数
(无)
返回值
指向末元素后一元素的逆向迭代器。
复杂度
常数。
参阅
| 返回指向容器最后元素的逆向迭代器 (公开成员函数) |