Jason House wrote:
Steven Schveighoffer wrote:

No, you need a pointer.  If T is a reference type, how do you distinguish
a null element from the end of the iteration?

Do you have any common cases where a range would generate nulls as part of its normal output? I think using the natural null feature of reference types is a clean and reasonable solution.


You could have a vector containing plenty of null references.

Andrei

Reply via email to