STL dequeのcrbegin方法(10)
原文の住所:http://www.cplusplus.com/reference/deque/deque/crbegin/
public member function
<deque>
std:deque:crbegin
Returns a constreverse_.iterator pointing to the last element in the container(i.e.its reverse beginning).
アンコールを返しますreverse_.iteratorは容器の最後の要素を指します.
パラメータ
none
Return Value
A constreverse_.iterator to the reverse beginning of the sequence.
逆方向のフィンガーシーケンスの先頭にあるローズマリーを返します.
メンバータイプ constreverse_.iterator is a reverse ラドm access iterator type that points to a const element(see) deque member types)
ローズマリーのタイプはランダムアクセスのローズマリーです.
Example
実行スクリーンショット:
Output:
コンサート
Iterator validity
No changes.
Data races
The container is accessed.
No contained elemens are accessed by the call,but the iterator returned can be used to access them.Concerently accessing or modifferent elemens is safe.
コンテナのすべての要素はアクセスされません.しかし、戻ってきたローズマリーは彼らを訪問し、異なる要素にアクセスしたり、修正したりすることができます.
Exception safety
No-throw garantee: this member function never throws exceptions.
The copy construction or assignment of the returned iterator is also garanted to never throw.
このメンバー方法は異常を投げません.
コピーまたは値付けによって得られたこのサブコマンダーのコピーも例外ではありません.
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
//翻訳のよくないところをご指導ください.下のメッセージを残したり、左上のメールアドレスをクリックしてメールしてください.私の間違いと不足を指摘してください.修正して、もっと良いのを皆さんに共有できます.ありがとうございます.
転載は出典を明記してください.http://blog.csdn.net/qq844352155 author:天下無双
メール:[email protected]
2014-9-1
GDUTで
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
public member function
<deque>
std:deque:crbegin
const_reverse_iterator crbegin() const noexcept;
Return const_reverse_.iterator to reverse beginingReturns a constreverse_.iterator pointing to the last element in the container(i.e.its reverse beginning).
アンコールを返しますreverse_.iteratorは容器の最後の要素を指します.
パラメータ
none
Return Value
A constreverse_.iterator to the reverse beginning of the sequence.
逆方向のフィンガーシーケンスの先頭にあるローズマリーを返します.
メンバータイプ constreverse_.iterator is a reverse ラドm access iterator type that points to a const element(see) deque member types)
ローズマリーのタイプはランダムアクセスのローズマリーです.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// deque::crbegin/crend #include <iostream> #include <deque> int main () { std::deque<int> mydeque = {1,2,3,4,5}; std::cout << "mydeque backwards:"; for (auto rit = mydeque.crbegin(); rit != mydeque.crend(); ++rit) std::cout << ' ' << *rit; std::cout << '
'; return 0; }
Edit&Run実行スクリーンショット:
Output:
mydeque backwards: 5 4 3 2 1
Coplexityコンサート
Iterator validity
No changes.
Data races
The container is accessed.
No contained elemens are accessed by the call,but the iterator returned can be used to access them.Concerently accessing or modifferent elemens is safe.
コンテナのすべての要素はアクセスされません.しかし、戻ってきたローズマリーは彼らを訪問し、異なる要素にアクセスしたり、修正したりすることができます.
Exception safety
No-throw garantee: this member function never throws exceptions.
The copy construction or assignment of the returned iterator is also garanted to never throw.
このメンバー方法は異常を投げません.
コピーまたは値付けによって得られたこのサブコマンダーのコピーも例外ではありません.
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
//翻訳のよくないところをご指導ください.下のメッセージを残したり、左上のメールアドレスをクリックしてメールしてください.私の間違いと不足を指摘してください.修正して、もっと良いのを皆さんに共有できます.ありがとうございます.
転載は出典を明記してください.http://blog.csdn.net/qq844352155 author:天下無双
メール:[email protected]
2014-9-1
GDUTで
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————