[libcxx-commits] [libcxx] 1fb91be - [libc++][NFC] Adjust synopsis for std::launder
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 23 08:11:57 PST 2023
Author: Louis Dionne
Date: 2023-11-23T11:11:51-05:00
New Revision: 1fb91beb173b1c3ca93c6ac6e01aab210369e083
URL: https://github.com/llvm/llvm-project/commit/1fb91beb173b1c3ca93c6ac6e01aab210369e083
DIFF: https://github.com/llvm/llvm-project/commit/1fb91beb173b1c3ca93c6ac6e01aab210369e083.diff
LOG: [libc++][NFC] Adjust synopsis for std::launder
Added:
Modified:
libcxx/include/new
Removed:
################################################################################
diff --git a/libcxx/include/new b/libcxx/include/new
index cb280743b6e1860..c60c6a5685a172f 100644
--- a/libcxx/include/new
+++ b/libcxx/include/new
@@ -46,7 +46,7 @@ new_handler set_new_handler(new_handler new_p) noexcept;
new_handler get_new_handler() noexcept;
// 21.6.4, pointer optimization barrier
-template <class T> constexpr T* launder(T* p) noexcept; // C++17
+template <class T> [[nodiscard]] constexpr T* launder(T* p) noexcept; // C++17, nodiscard since C++20
} // std
void* operator new(std::size_t size); // replaceable, nodiscard in C++20
More information about the libcxx-commits
mailing list