Iterators and Ranges: Comparing C++ to D to Rust

Ali Çehreli acehreli at yahoo.com
Mon Jun 14 17:49:44 UTC 2021


On 6/14/21 7:29 AM, Steven Schveighoffer wrote:

 > But in reality, there are 6 more:
 >
 > last .. first
 > last .. mid.begin()
 > .... // etc
 >
 > Of course those are invalid, but the C++ compiler will happily use them

Add to that pairs of iterators made from different containers. :)

   last_of_apples .. first_of_oranges

Ali



More information about the Digitalmars-d mailing list