]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Move start_lifetime_as functions to bits/stl_construct.h [PR106658]
authorTomasz Kamiński <tkaminsk@redhat.com>
Mon, 22 Sep 2025 11:31:17 +0000 (13:31 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Mon, 22 Sep 2025 13:59:21 +0000 (15:59 +0200)
commitf8681ec8d0a778c62cf6d921e00a8714529ecca8
treefd56a90cf95482913930a17115d7624f327e3ebc
parent915803d88b912d178078594c94845c78413c0f2f
libstdc++: Move start_lifetime_as functions to bits/stl_construct.h [PR106658]

This allows inplace_vector to use these functions without including the entire
<memory> header.

Preprocessor checks are changed to use __glibcxx macros, so new functions are
available outside memory header, that exports __cpp_lib macros.

PR libstdc++/106658

libstdc++-v3/ChangeLog:

* include/bits/stl_construct.h (std::start_lifetime_as_array)
(std::start_lifetime_as): Moved from std/memory, with update
to guard macros.
* include/std/memory (std::start_lifetime_as_array)
(std::start_lifetime_as): Moved to bits/stl_construct.h.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/include/bits/stl_construct.h
libstdc++-v3/include/std/memory