ISO/IEC TS 21425:2017
Programming languages - C++ Extensions for ranges
- The formulation of the foundational and iterator concept requirements using the syntax of the Concepts TS (2).
- Analogues of the Standard Library algorithms specified in terms of the new concepts.
- The loosening of the algorithm constraints to permit the use of sentinels to denote the end of a range and corresponding changes to algorithm return types where necessary.
- The addition of new concepts describing range and view abstractions; that is, objects with a begin iterator and an end sentinel.
- New algorithm overloads that take range objects.
- Support of callable objects (as opposed to function objects) passed as arguments to the algorithms.
- The addition of optional projection arguments to the algorithms to permit on-the-fly data transformations.
- Analogues of the iterator primitives and new primitives in support of the addition of sentinels to the library.
- Constrained analogues of the standard iterator adaptors and stream iterators that satisfy the new iterator concepts.
- New iterator adaptors (counted_iterator and common_iterator) and sentinels (unreachable).
Changes to the core language include:
- the extension of the range-based for statement to support the new iterator range requirements (10.4).
ISO/IEC TS 21425:2017 does not specify constrained analogues of other parts of the Standard Library (e.g., the numeric algorithms), nor does it add range support to all the places that could benefit from it (e.g., the containers).
ISO/IEC TS 21425:2017 does not specify any new range views, actions, or facade or adaptor utilities; all are left as future work.
|Publication type||Technical Specification|
|TC/SC||ISO/IEC JTC 1/SC 22 - Programming languages, their environments and system software interfacesrss|
|ICS||35.060 - Languages used in information technology|
|File size||2690 KB|
The following test report forms are related:
Share your publications
Learn how to share your publications with your colleagues, using networking options.
Our prices are in Swiss francs (CHF). We accept all major credit cards (American Express, Mastercard and Visa), PayPal and bank transfers as form of payment.
Keep in touch
Keep up to date with new publication releases and announcements with our free IEC Just Published email newsletter.
Contact customer services
Please send your enquiry by email or call us on +41 22 919 02 11 between 09:00 – 17:00 CET Monday to Friday.