N3782: Index Based Ranges (Rev. 1) -- Arno Schödl, Fabio Fracassi

A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: N3782

Date: 2013-09-24

Index Based Ranges (Rev. 1)

by Arno Schödl, Fabio Fracassi

Excerpt:

Key Points

In contrast to most currently popular range implementations, which define range iterations in terms of (pairs of) iterators we propose to use range adaptors and indices (which is similar to N1873 - Cursor/Property Maps). The most important consequence of this is that we can avoid ”Fat Iterators” when stacking range adaptors, in particular range filters.

Ranges and Traversables

This paper is intended to be fully compatible with N3763 - Traversable Arguments. We intedend to use the Traversable concept as a basis wherever applicable. N3763 sets a good foundation for making Traversables easy to work with. In this paper we would like to explore the design space beyond this basis to make working with them both easy and powerful for programmers.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.