<iterator>: Remove stdext::checked_array_iterator and stdext::unchecked_array_iterator by StephanTLavavej · Pull Request #5817 · microsoft/STL (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation2 Commits6 Checks41 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@StephanTLavavej

Overview

One or two years of deprecation notice is enough. (VS 2022 17.14 and VS 2026 18.0 still support these non-Standard iterators and will be supported for a long time, giving customers plenty of notice and time to migrate.)

These non-Standard iterators make it more difficult to write portable code. They're no longer necessary to avoid obnoxious "output iterator is a raw pointer" warnings from STL algorithms (which we removed a long time ago). gsl::span (available downlevel to C++14) and std::span in C++20 are superior mechanisms, since they act as ranges instead of individual iterators.

Commits

@StephanTLavavej

This comment was marked as resolved.

davidmrdavid

@StephanTLavavej

Programmer-Archaeology

Qt

In #4605 (April 2024), I mentioned that "Qt stopped using stdext::checked_array_iterator and backported that to their various release branches". Here are the specific releases, from examining qtbase/src/corelib/global/qcompilerdetection.h:

aws-sdk-cpp

Fixed in November 2023 by aws/aws-sdk-cpp#2726.

This was referenced

Nov 7, 2025

Labels

2 participants

@StephanTLavavej @davidmrdavid