[libcxx-commits] [libcxx] [llvm] [libc++] Remove `get_temporary_buffer`/`return_temporary_buffer` (PR #100914)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 4 10:24:36 PDT 2024


================
@@ -22,8 +22,8 @@
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _Tp>
-_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI _LIBCPP_DEPRECATED_IN_CXX17 pair<_Tp*, ptrdiff_t>
-get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT {
+_LIBCPP_NODISCARD _LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI pair<_Tp*, ptrdiff_t>
+__get_temporary_buffer(ptrdiff_t __n) _NOEXCEPT {
----------------
frederick-vs-ja wrote:

I'm now trying to create constexpr-friendly `__scoped_temporary_buffer`, but the `constexpr` isn't meaningful until [P2562R1](https://wg21.link/P2562R1) gets implemented.

https://github.com/llvm/llvm-project/pull/100914


More information about the libcxx-commits mailing list