Skip to content

Commit caf804b

Browse files
jwakelyTomasz Kamiński
andcommitted
libstdc++: Implement C++26 std::indirect [PR119152]
This patch implements C++26 std::indirect as specified in P3019 with amendment to move assignment from LWG 4251. PR libstdc++/119152 libstdc++-v3/ChangeLog: * doc/doxygen/stdheader.cc: Added indirect.h file. * include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/bits/indirect.h: New file. * include/bits/version.def (indirect): Define. * include/bits/version.h: Regenerate. * include/std/memory: Include new header. * testsuite/std/memory/indirect/copy.cc * testsuite/std/memory/indirect/copy_alloc.cc * testsuite/std/memory/indirect/ctor.cc * testsuite/std/memory/indirect/incomplete.cc * testsuite/std/memory/indirect/invalid_neg.cc * testsuite/std/memory/indirect/move.cc * testsuite/std/memory/indirect/move_alloc.cc * testsuite/std/memory/indirect/relops.cc Co-authored-by: Tomasz Kamiński <[email protected]> Signed-off-by: Tomasz Kamiński <[email protected]>
1 parent 545433e commit caf804b

File tree

15 files changed

+1626
-0
lines changed

15 files changed

+1626
-0
lines changed

libstdc++-v3/doc/doxygen/stdheader.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ void init_map()
106106
headers["uses_allocator.h"] = "memory";
107107
headers["uses_allocator_args.h"] = "memory";
108108
headers["out_ptr.h"] = "memory";
109+
headers["indirect.h"] = "memory";
109110
headers["memory_resource.h"] = "memory_resource";
110111
headers["unique_lock.h"] = "mutex";
111112
headers["sat_arith.h"] = "numeric";

libstdc++-v3/include/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ bits_headers = \
211211
${bits_srcdir}/gslice_array.h \
212212
${bits_srcdir}/hashtable.h \
213213
${bits_srcdir}/hashtable_policy.h \
214+
${bits_srcdir}/indirect.h \
214215
${bits_srcdir}/indirect_array.h \
215216
${bits_srcdir}/ios_base.h \
216217
${bits_srcdir}/istream.tcc \

libstdc++-v3/include/Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ bits_freestanding = \
564564
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/gslice_array.h \
565565
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/hashtable.h \
566566
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/hashtable_policy.h \
567+
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/indirect.h \
567568
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/indirect_array.h \
568569
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/ios_base.h \
569570
@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/istream.tcc \

0 commit comments

Comments
 (0)