When you want to use a user-defined type in a range-based for-loop, your user-defined type has to implement the Iterator Protocol.
There are more reasons to prefer ranges library above the classical Standard Template Library. The ranges iterators support unified lookup rules and provide additional safety guarantees.
Currently are 171 guests and no members online
Kubik-Rubik Joomla! Extensions