Re: EasyHack Suggestion: Use range based for loops

2021-10-21 Thread Stephan Bergmann
On 10/21/21 17:25, Luboš Luňák wrote: On Thursday 21 of October 2021, Hossein Nourikhah wrote: Since C++11, range based loops are available for iterating over a known range of values. For example, when there is a need to process elements of a container, range based loops are usually a good choic

Re: EasyHack Suggestion: Use range based for loops

2021-10-21 Thread Luboš Luňák
On Thursday 21 of October 2021, Hossein Nourikhah wrote: > Since C++11, range based loops are available for iterating over a known > range of values. For example, when there is a need to process elements > of a container, range based loops are usually a good choice. They are > easy to write, read a

EasyHack Suggestion: Use range based for loops

2021-10-21 Thread Hossein Nourikhah
Hello, This is a suggestion for adding an EasyHack with the difficulty "Beginner". I have asked one of the newbies to do a submission regarding this. Please tell me your opinion. I welcome any suggestions. Regards, Hossein **Use range based for loops** Since C++11, rang