On Fri, Oct 24, 2025 at 8:01 PM Jonathan Wakely <[email protected]> wrote:

> libstdc++-v3/ChangeLog:
>
>         * testsuite/util/testsuite_iterators.h (test_container): Add
>         iterator and value_type typedefs.
> ---
>
> I wanted to use test_container::value_type in a new test I was writing,
> and though it would be worth adding independently of the new test.
>
> Tested powerpc64le-linux.
>
LGTM

>
>  libstdc++-v3/testsuite/util/testsuite_iterators.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/libstdc++-v3/testsuite/util/testsuite_iterators.h
> b/libstdc++-v3/testsuite/util/testsuite_iterators.h
> index 5bf2e704e843..41fbcaad366a 100644
> --- a/libstdc++-v3/testsuite/util/testsuite_iterators.h
> +++ b/libstdc++-v3/testsuite/util/testsuite_iterators.h
> @@ -674,6 +674,9 @@ namespace __gnu_test
>    template <class T, template<class TT> class ItType>
>    struct test_container
>    {
> +    typedef ItType<T> iterator;
> +    typedef typename iterator::value_type value_type;
> +
>      typename ItType<T>::ContainerType bounds;
>
>      _GLIBCXX_CONSTEXPR
> --
> 2.51.0
>
>

Reply via email to