Header Reference: <new>
Header Reference: <new>
Allocation support utilities, placement new, alignment helpers, and allocation-related exception types from <new>.
Header Reference: <new>
Allocation support utilities, placement new, alignment helpers, and allocation-related exception types from <new>.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
Header reference pages are meant to answer a practical question quickly: what this header provides, when to reach for it, and which usage rules are easiest to get wrong.
<new>operator new and operator delete declarationsstd::bad_allocstd::bad_array_new_lengthstd::nothrowstd::align_val_tstd::launderstd::hardware_destructive_interference_sizestd::hardware_constructive_interference_sizeUse <new> for low-level allocation control, placement construction, and allocation-failure types.
std::nothrow overloads where exception-free allocation is requirednew and delete.#include <new>
int main() {
// Start with the primary facility from <new>.
// Then verify lifetime, invalidation, ordering, or error-handling rules.
return 0;
}