File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class __small_buffer {
6161 return *std::launder (reinterpret_cast <_Stored**>(__buffer_));
6262 }
6363
64+ # ifdef _LIBCPP_HAS_LIBRARY_ALIGNED_ALLOCATION
6465 template <class _Stored >
6566 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc () {
6667 if constexpr (__fits_in_buffer<_Stored>) {
@@ -72,11 +73,14 @@ class __small_buffer {
7273 }
7374 }
7475
76+ # endif // _LIBCPP_HAS_LIBRARY_ALIGNED_ALLOCATION
77+ # ifdef _LIBCPP_HAS_LIBRARY_SIZED_DEALLOCATION
7578 template <class _Stored >
7679 _LIBCPP_HIDE_FROM_ABI void __dealloc () noexcept {
7780 if constexpr (!__fits_in_buffer<_Stored>)
7881 ::operator delete[] (*reinterpret_cast <void **>(__buffer_), sizeof (_Stored), align_val_t {alignof (_Stored)});
7982 }
83+ # endif // _LIBCPP_HAS_LIBRARY_SIZED_DEALLOCATION
8084
8185 template <class _Stored , class ... _Args>
8286 _LIBCPP_HIDE_FROM_ABI void __construct (_Args&&... __args) {
You can’t perform that action at this time.
0 commit comments