Search code examples
Allocate vs construct an array of ints using operator new and placement new...


c++new-operatordelete-operatorplacement-new

Read More
std::launder and strict aliasing rule...


c++language-lawyerc++17strict-aliasingplacement-new

Read More
How should I use placement new with a custom allocation API?...


c++c++11memory-managementplacement-new

Read More
Array placement-new requires unspecified overhead in the buffer?...


c++memory-managementstandardsplacement-new

Read More
Can't add element into container<T> with emplace new if T has explicit constructor...


c++perfect-forwardingplacement-newexplicit-constructor

Read More
Finding Bug in implementation of dynamic array class. Crashes after building list of strings...


c++templatesplacement-new

Read More
Is modifying the internal bytes of a const object undefined behavior in case it contains another obj...


c++standardsundefined-behaviorplacement-new

Read More
Why isn't there a std::construct_at in C++17?...


c++c++17placement-new

Read More
How C++ placement new works?...


c++placement-new

Read More
What makes placement new call the constructor of an object?...


c++new-operatorallocationallocatorplacement-new

Read More
Placement new depends on iostream...


c++memory-alignmentplacement-new

Read More
Using placement new with an std::function doesn't work...


c++c++17visual-studio-2019std-functionplacement-new

Read More
How does boost::serialization allocate memory when deserializing through a pointer?...


c++boostboost-serializationplacement-new

Read More
Extra construction when using placement new with a storage class...


c++placement-new

Read More
Variation on the type punning theme: in-place trivial construction...


c++language-lawyerreinterpret-castobject-lifetimeplacement-new

Read More
Is new (this) ThisClass() a bad idea?...


c++placement-new

Read More
At what point does the lifetime of a trivial type created by placement-new start?...


c++language-lawyerobject-lifetimeplacement-newobject-model

Read More
c++ allocator: operator new or placement new...


c++new-operatorallocatorplacement-new

Read More
treating memory returned by operator new(sizeof(T) * N) as an array...


c++arrayslanguage-lawyerplacement-newalignas

Read More
Is it safe to call placement new on `this` for trivial object?...


c++placement-new

Read More
Is it legal to construct data members of a struct separately?...


c++structlanguage-lawyerc++98placement-new

Read More
Using placement new in generic programming...


c++language-lawyergeneric-programmingplacement-newc++-faq

Read More
Initialize array using variadic template list and placement new...


c++arraysc++17variadic-templatesplacement-new

Read More
What does it mean to obtain storage?...


c++language-lawyerlifetimeplacement-new

Read More
Initializing objects with virtual functions on pre-allocated memory without placement new operator -...


c++constructorplacement-newvptr

Read More
Placement new on non-pointer variables and class members...


c++classg++placement-new

Read More
Is new(&*p) double; a no-op. Does therefore uninitialized_default_construct becomes no-op as wel...


c++initializationc++17placement-newno-op

Read More
Placement New on already existing object in SharedMemory...


c++shared-memoryplacement-new

Read More
Using new (this) to reuse constructors...


c++thisplacement-new

Read More
Is using a placement new as a copy assignment operator bad?...


c++assignment-operatorplacement-new

Read More
BackNext