エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
C++11 reverse range-based for-loop
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
C++11 reverse range-based for-loop
Is there a container adapter that would reverse the direction of iterators so I can iterate over ... Is there a container adapter that would reverse the direction of iterators so I can iterate over a container in reverse with range-based for-loop? With explicit iterators I would convert this: for (auto i = c.begin(); i != c.end(); ++i) { ... into this: for (auto i = c.rbegin(); i != c.rend(); ++i) { ... I want to convert this: for (auto& i: c) { ... to this: for (auto& i: std::magic_reverse_adapt