(C++) range-for
March 10, 2018 ยท View on GitHub
A range-for is a type of for available in C++11.
Example
Advice
- Prefer a range-for-statement to a for-statement when there is a choice [1]
External links
References
- [1] Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 9.8. Advice. page 240: '[3] Prefer a range-for-statement to a for-statement when there is a choice'