]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add typedefs to __gnu_test::test_container utility
authorJonathan Wakely <jwakely@redhat.com>
Tue, 21 Oct 2025 23:48:23 +0000 (00:48 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 27 Oct 2025 09:54:50 +0000 (09:54 +0000)
libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_iterators.h (test_container): Add
iterator and value_type typedefs.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
libstdc++-v3/testsuite/util/testsuite_iterators.h

index 5bf2e704e843b7e9a8cb344fc9c7b5e4ab1765f0..41fbcaad366a651502f7dac12a9941fa9efc7a13 100644 (file)
@@ -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