STLarray方法总结(一)Iterators(20)
这里是array方法的一些总结,具体的可以看后面的链接:
public member function
std::array::begin
iterator begin() noexcept;
const_iterator begin() const noexcept;
返回一个指向array容器第一个元素的iterator.
注意和array::front不同,front是返回一个指向第一个元素的引用,这个函数是返回一个指向第一个元素的随机访问迭代器。
Parameters
none
Return Value
返回一个指向第一个元素的迭代器。
详细请看:http://blog.csdn.net/qq844352155/article/details/38852287
———————————————————————————————————————————————————
public member function
std::array::end
iterator end() noexcept;
const_iterator end() const noexcept;
返回array容器的超尾迭代器。
Parameters
none
Return Value
返回一个迭代器指向超尾元素。
原文请看:http://blog.csdn.net/qq844352155/article/details/38882921
———————————————————————————————————————————————————
public member function
std::array::rbegin
reverse_iterator rbegin() noexcept;
const_reverse_iterator rbegin() const noexcept;
返回一个反向迭代器指array容器的最后一个元素。
Parameters
none
Return Value
一个反向迭代器指向序列开头。
原文地址:http://blog.csdn.net/qq844352155/article/details/38944411
———————————————————————————————————————————————————
public member function
std::array::rend
reverse_iterator rend() noexcept;
const_reverse_iterator rend() const noexcept;
返回一个反向迭代器指向理论上存在于array容器第一个元素之前的元素。(这个元素被认为是反向的结尾)
Parameters
none
Return Value
返回值是一个反向迭代器指向序列的反向结尾。
原文地址:http://blog.csdn.net/qq844352155/article/details/38944541
———————————————————————————————————————————————————
public member function
std::array::cbegin
const_iterator cbegin() const noexcept;
返回一个指向array容器第一个元素的const_iterator.
Parameters
none
Return Value
返回值为一个指向序列开头的const_iterator。
原文地址:http://blog.csdn.net/qq844352155/article/details/38854437
———————————————————————————————————————————————————
public member function
std::array::cend
const_iterator cend() const noexcept;
返回一个const属性的超尾迭代器
Parameters
none
Return Value
A const_iterator to the past-the-end location of the sequence.
返回const属性的一个超尾迭代器。
原文地址:http://blog.csdn.net/qq844352155/article/details/38856009
———————————————————————————————————————————————————
public member function
std::array::crbegin
const_iterator crbegin() const noexcept;
返回一个const_reverse_iterator指向array容器的最后一个元素。
Parameters
none
Return Value
返回一个反转的指向序列开头的迭代器。
原文地址:http://blog.csdn.net/qq844352155/article/details/38857821
———————————————————————————————————————————————————
public member function
std::array::crend
const_iterator crend() const noexcept;
返回一个const_reverse_iterator指向理论上存在于数组第一个元素之前位置的元素,这个元素被认为是反向的超尾元素。
Parameters
none
Return Value
返回一个const_reverse_iterator指向序列的超尾元素。
原文地址:http://blog.csdn.net/qq844352155/article/details/38865405
——————————————————————————————————————————————————————————————————
//总结的不好的地方请多多指导,可以在下面留言或者点击左上方邮件地址给我发邮件,指出我的错误以及不足,以便我修改,更好的分享给大家,谢谢。
转载请注明出处:http://blog.csdn.net/qq844352155
author:天下无双
Email:coderguang@gmail.com
2014-8-30
于GDUT
——————————————————————————————————————————————————————————————————
- 本文作者: royalchen
- 本文链接: http://www.royalchen.com/2016/02/24/stlarray方法总结(一)iterators(20)/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!