public inbox for
help / color / mirror / Atom feed
* [gcc r13-2762] libstdc++: Update <memory> synopsis test for C++11 and later
@ 2022-09-21 14:02 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-09-21 14:02 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

commit r13-2762-g980aa91e9cefe64245b7c32ee81ba372b7229aeb
Author: Jonathan Wakely <>
Date:   Wed Sep 21 09:29:39 2022 +0100

    libstdc++: Update <memory> synopsis test for C++11 and later
            * testsuite/20_util/headers/memory/ Add declarations
            from C++11 and later.

 .../testsuite/20_util/headers/memory/   | 66 +++++++++++++++++++---
 1 file changed, 59 insertions(+), 7 deletions(-)

diff --git a/libstdc++-v3/testsuite/20_util/headers/memory/ b/libstdc++-v3/testsuite/20_util/headers/memory/
index 03e3f80dac5..15437c72ee0 100644
--- a/libstdc++-v3/testsuite/20_util/headers/memory/
+++ b/libstdc++-v3/testsuite/20_util/headers/memory/
@@ -26,20 +26,35 @@
 # define NOTHROW
-namespace std {
+namespace std
+#if __cplusplus >= 201103L
+  template<class Ptr> struct pointer_traits;
+  template<class T> struct pointer_traits<T*>;
+  void* align(size_t alignment, size_t size, void*& ptr, size_t& space);
+  struct allocator_arg_t;
+  extern const allocator_arg_t allocator_arg;
+  template<class T, class Alloc> struct uses_allocator;
+  template<class Alloc> struct allocator_traits;
+#endif // C++11
+#if __STDC_HOSTED__
   //  lib.default.allocator, the default allocator:
   template <class T> class allocator;
+#if __cplusplus >= 202002L
+  template <class T, class U>
+  constexpr bool operator==(const allocator<T>&, const allocator<U>&) throw();
   template <> class allocator<void>;
   template <class T, class U>
-#if __cplusplus > 201703L
-  constexpr
   bool operator==(const allocator<T>&, const allocator<U>&) throw();
   template <class T, class U>
-#if __cplusplus > 201703L
-  constexpr
   bool operator!=(const allocator<T>&, const allocator<U>&) throw();
   //, raw storage iterator:
   template <class OutputIterator, class T> class raw_storage_iterator;
@@ -49,18 +64,55 @@ namespace std {
   pair<T*,ptrdiff_t> get_temporary_buffer(ptrdiff_t n) NOTHROW;
   template <class T>
   void return_temporary_buffer(T* p);
+#endif // HOSTED
   //  lib.specialized.algorithms, specialized algorithms:
+#if __cplusplus >= 201703L
+  template <class T> constexpr T* addressof(T&) noexcept;
+#elif __cplusplus >= 201402L
+  template <class T> T* addressof(T&) noexcept;
   template <class InputIterator, class ForwardIterator>
   uninitialized_copy(InputIterator first, InputIterator last,
 		     ForwardIterator result);
+#if __cplusplus >= 201103L
+  template <class InputIterator, class Size, class ForwardIterator>
+  ForwardIterator
+  uninitialized_copy_n(InputIterator first, Size n, ForwardIterator result);
   template <class ForwardIterator, class T>
   void uninitialized_fill(ForwardIterator first, ForwardIterator last,
 			  const T& x);
   template <class ForwardIterator, class Size, class T>
   void uninitialized_fill_n(ForwardIterator first, Size n, const T& x);
+#if __cplusplus >= 201103L
+  template<class T> class default_delete;
+  template<class T> class default_delete<T[]>;
+  template<class T, class D> class unique_ptr;
+  template<class T, class D> class unique_ptr<T[], D>;
+  template<class T, class D>
+    void swap(unique_ptr<T, D>&, unique_ptr<T, D>&) noexcept;
+#if __cplusplus >= 201402L
+  template<class T, class... Args> unique_ptr<T> make_unique(Args&&...);
+  class bad_weak_ptr;
+  template<class T> class shared_ptr;
+  template<class T, class... Args> shared_ptr<T> make_shared(Args&&... args);
+  template<class T, class A, class... Args>
+  shared_ptr<T> allocate_shared(const A& a, Args&&... args);
+  template<class T> void swap(shared_ptr<T>&, shared_ptr<T>&) noexcept;
+  template<class T> class weak_ptr;
+  template<class T> void swap(weak_ptr<T>&, weak_ptr<T>&) noexcept;
+  template<class T> class owner_less;
+  template<class T> class enable_shared_from_this;
+  template<class T, class D> struct hash<unique_ptr<T, D>>;
+  template<class T> struct hash<shared_ptr<T>>;
   //, pointers:
   template<class X> class auto_ptr;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-21 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 14:02 [gcc r13-2762] libstdc++: Update <memory> synopsis test for C++11 and later Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).