Unverified Commit e7cf896b authored by Angel_Kitty's avatar Angel_Kitty Committed by GitHub
Browse files

Merge pull request #1711 from OI-wiki/Enter-tainer-patch-1

🐛 fix(iter): 修复对 rend 的错误解释
parents 12dc6815 1efa4166
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,4 +30,4 @@ for (vector<int>::iterator iter = data.begin(); iter != data.end(); iter++)

## 获取途径

STL 容器一般支持从一端或两端开始的访问,以及对 [const 修饰符](../const.md) 的支持。例如容器的 `begin()` 函数可以获得指向容器头部的迭代器,而 `rend()` 函数可以获得指向容器头部,并且支持反向访问的迭代器。
STL 容器一般支持从一端或两端开始的访问,以及对 [const 修饰符](../const.md) 的支持。例如容器的 `begin()` 函数可以获得指向容器头部的迭代器,而 `rbegin()` 函数可以获得指向容器尾部的元素的反向迭代器。