Talk:cpp/memory/construct at
From cppreference.com
< Talk:cpp
[edit] constexpr
example?
The given example uses reinterpret_cast
, which sort of defeats the purpose. I see using allocate
, but I'm having trouble understanding the constexpr
use case in which there's an existing T
to use. BenFrantzDale (talk) 05:38, 30 April 2024 (PDT)
- The example has been converted to use the
contexpr
context. ✔ ?) --Space Mission (talk) 04:22, 3 May 2024 (PDT)
[edit] Alignment?
The page should mention something about alignment. Is it UB to give it a T*
that's not aligned properly? BenFrantzDale (talk) 04:43, 8 May 2024 (PDT)