std::vector<T,Allocator>::rend, std::vector<T,Allocator>::crend
来自cppreference.com
容器库
std::vector
reverse_iterator
rend();
|
(C++11 前) | |
reverse_iterator
rend()
noexcept;
|
(C++11
起) (C++20 前) |
|
constexpr
reverse_iterator rend()
noexcept;
|
(C++20 起) | |
const_reverse_iterator
rend()
const;
|
(C++11 前) | |
const_reverse_iterator
rend()
const
noexcept;
|
(C++11
起) (C++20 前) |
|
constexpr
const_reverse_iterator rend()
const
noexcept;
|
(C++20 起) | |
const_reverse_iterator
crend()
const
noexcept;
|
(C++11
起) (C++20 前) |
|
constexpr
const_reverse_iterator
crend()
const
noexcept;
|
(C++20 起) | |
返回指向逆向 vector
末元素后一元素的逆向迭代器。它对应非逆向 vector
首元素的前一元素。此元素表现为占位符,试图访问它导致未定义行为。
参数
(无)
返回值
指向末元素后一元素的逆向迭代器。
复杂度
常数。
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
返回指向起始的逆向迭代器 (公开成员函数) |