libstdc++: Add more Doxygen comments and another test for std::out_ptr
commit66c15287ddbdc9c270fca528bb641d265a370dcc
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 Nov 2023 12:52:45 +0000 (17 12:52 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 17 Nov 2023 14:46:30 +0000 (17 14:46 +0000)
tree41d7a05042605d5a4d5530857aa412c550b3a307
parent9c950c0ad8d3f94112810d70018537b618796284
libstdc++: Add more Doxygen comments and another test for std::out_ptr

Improve Doxygen comments for std::out_ptr etc. and add a test for the
feature test macro.  Also remove a redundant preprocessor condition.

Ideally the docs for std::out_ptr and std::inout_ptr would show examples
of how to use them and what they do, but that would take some effort.
I'll aim to do that before GCC 14 is released.

libstdc++-v3/ChangeLog:

* include/bits/out_ptr.h: Add Doxygen comments. Remove a
redundant preprocessor condition.
* testsuite/20_util/smartptr.adapt/version.cc: New test.
libstdc++-v3/include/bits/out_ptr.h
libstdc++-v3/testsuite/20_util/smartptr.adapt/version.cc [new file with mode: 0644]