All Uninitialized-Memory Helpers
All Uninitialized-Memory Helpers
A compact index of raw-storage construction, destruction, and uninitialized algorithms used in low-level library code.
All Uninitialized-Memory Helpers
A compact index of raw-storage construction, destruction, and uninitialized algorithms used in low-level library code.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
std::construct_atstd::uninitialized_default_constructstd::uninitialized_default_construct_nstd::uninitialized_value_constructstd::uninitialized_value_construct_nstd::uninitialized_fillstd::uninitialized_fill_nstd::uninitialized_copystd::uninitialized_copy_nstd::uninitialized_movestd::uninitialized_move_nstd::destroy_atstd::destroystd::destroy_nstd::allocator_traitsstd::to_address<new>std::launder#include <memory>
int main() {
auto owner = std::make_unique<int>(42);
auto shared = std::make_shared<int>(*owner);
owner.reset();
return *shared;
}