diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-05-10 22:41:11 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-05-10 22:41:11 +0100 |
commit | 302b6996078bca83fbb51e7b77bce9fbb4e8072b (patch) | |
tree | bfcdae6d1a79cde6c76f55fca4534b725fb24908 /libstdc++-v3/libsupc++ | |
parent | 15e5858fbe6245b07f9115990bc58d4dfb76e46a (diff) |
Improve API docs for <memory> and <new>
* include/bits/shared_ptr.h: Improve docs.
* include/bits/shared_ptr_base.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/unique_ptr.h: Likewise.
* libsupc++/new: Likewise.
From-SVN: r271077
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r-- | libstdc++-v3/libsupc++/new | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new index 24d897a8f22..9ea44a4ede0 100644 --- a/libstdc++-v3/libsupc++/new +++ b/libstdc++-v3/libsupc++/new @@ -28,7 +28,8 @@ * * The header @c new defines several functions to manage dynamic memory and * handling memory allocation errors; see - * http://gcc.gnu.org/onlinedocs/libstdc++/18_support/howto.html#4 for more. + * https://gcc.gnu.org/onlinedocs/libstdc++/manual/dynamic_memory.html + * for more. */ #ifndef _NEW @@ -211,10 +212,13 @@ namespace std #if __cplusplus > 201703L namespace std { + /// Tag type used to declare a class-specific operator delete that can + /// invoke the destructor before deallocating the memory. struct destroying_delete_t { explicit destroying_delete_t() = default; }; + /// Tag variable of type destroying_delete_t. inline constexpr destroying_delete_t destroying_delete{}; } // Only define the feature test macro if the compiler supports the feature: |