diff --git a/proposals/p1885.md b/proposals/p1885.md index 17cf8d9b5af5c..a83662da614fe 100644 --- a/proposals/p1885.md +++ b/proposals/p1885.md @@ -84,6 +84,12 @@ The original `for` proposal does not define a way for user-defined types to opt-in to support range-based for loops. An approach is proposed in this document. +This can be achieved using either a cursor or an iterator. A cursor benefits +from being simple to manipulate and understand, and is used against a container. +On the other hand, an iterators benefits from being more self-contained +(dereferencing, next item, and optionally boundary), at the expense of its +complexity. + ### Other languages This section highlights some examples of how iterators and range-based for