[PATCH 11/10] libstdc++: Use reserved names for custom iterators in PSTL code

Tomasz Kaminski tkaminsk@redhat.com
Wed Dec 2 12:39:40 GMT 2026


On Wed, Dec 2, 2026 at 1:06 PM Jonathan Wakely <jwakely@redhat.com> wrote:

> On Tue, 01 Dec 2026 at 12:38 +0100, Tomasz Kaminski wrote:
> >On Tue, Dec 1, 2026 at 10:58 AM Jonathan Wakely <jwakely.gcc@gmail.com>
> >wrote:
> >
> >>
> >>
> >> On Tue, 1 Dec 2026, 08:53 Tomasz Kaminski, <tkaminsk@redhat.com> wrote:
> >>
> >>>
> >>>
> >>> On Fri, Nov 27, 2026 at 10:54 PM Jonathan Wakely <jwakely@redhat.com>
> >>> wrote:
> >>>  template <typename... _Types>
> >>>> -class zip_forward_iterator
> >>>> +class _Zip_forward_iterator
> >>>>
> >>> I do not understand why this change is made. If it is needed, because
> >>> zip_forward_iterator is not name reserved by
> >>> standard,
> >>>
> >>
> >> Yes, that's exactly it.
> >>
> >> then the same applies to the discarding and permutation iterators also
> >>> defined below.
> >>>
> >>
> >>
> >> Yes, they should be changed too.
> >>
> >Also counting_iterator, as std counterpart is named counted_iterator.
>
> Here's a patch (a new one on top of the earlier one, not a
> replacement for the earlier one) to fix more non-reserved names.
>

Could you move _Zip_transform iterator to this patch, it would fit better.
Otherwise LGTM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261202/776acdf6/attachment.htm>


More information about the Libstdc++ mailing list