StackOverflow Questions for Tag: placement-new

lobelk
lobelk

Reputation: 502

Why does making allocator a data member change the generated assembly?

Score: -1

Views: 69

Answers: 0

Read More
Head Geek
Head Geek

Reputation: 39878

What uses are there for "placement new"?

Score: 522

Views: 249118

Answers: 26

Read More
zwhconst
zwhconst

Reputation: 1523

Does "providing storage" mean being the "object representation"?

Score: 1

Views: 102

Answers: 1

Read More
greenlagoon
greenlagoon

Reputation: 121

Respecting alignment in a char buffer allocated with malloc that contains objects of different types, sizes and alignments

Score: 0

Views: 117

Answers: 0

Read More
Christopher Miller
Christopher Miller

Reputation: 3461

How can I allocate multiple arrays of different types in a single allocation?

Score: 0

Views: 106

Answers: 1

Read More
Thomas Weller
Thomas Weller

Reputation: 59575

Which sort of UB do I have here, deleting array of operator new[]?

Score: 1

Views: 105

Answers: 1

Read More
Stewart
Stewart

Reputation: 5042

Is this an abuse of placement new?

Score: 0

Views: 166

Answers: 1

Read More
HeliumHydride
HeliumHydride

Reputation: 81

Should I take the address of an array when using placement new?

Score: 0

Views: 76

Answers: 1

Read More
François Andrieux
François Andrieux

Reputation: 29032

How to initialize a union containing const data members in C++11

Score: 1

Views: 106

Answers: 1

Read More
Vaibhav Awale
Vaibhav Awale

Reputation: 1

Using ranges::transform to write to uninitialized memory for trivial types

Score: 0

Views: 55

Answers: 0

Read More
getsoubl
getsoubl

Reputation: 1055

C++ Use Container annotation wrapper for detect memory buffer overflow does not work

Score: 0

Views: 80

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 132108

Can I dynamically generate a contiguous sequence of non-default-ctorable objects which can be deleted with delete[]?

Score: 3

Views: 207

Answers: 2

Read More
einpoklum
einpoklum

Reputation: 132108

Can I rely on how new[] typically works?

Score: 1

Views: 181

Answers: 2

Read More
Christopher Miller
Christopher Miller

Reputation: 3461

Can someone explain the rules of object lifetimes and uninitialized memory in C++ (context: std::inplace_vector)?

Score: 6

Views: 284

Answers: 1

Read More
种传龙
种传龙

Reputation: 19

How to detect Out-of-Bounds Access within Placement New Boundaries in C++?

Score: 1

Views: 157

Answers: 2

Read More
ROBERT RICHARDSON
ROBERT RICHARDSON

Reputation: 2299

How does the behavior of this override of placement new change things?

Score: 0

Views: 52

Answers: 0

Read More
user24551355
user24551355

Reputation: 414

does storage provider have to be of type char,unsigned char or std::byte? or can it be any Type?

Score: 1

Views: 120

Answers: 1

Read More
DocValle
DocValle

Reputation: 167

Why is 'Placement New' for classes with virtual Members only working when buffer is on local stack?

Score: 4

Views: 120

Answers: 1

Read More
Alexander S
Alexander S

Reputation: 119

Is padding important when calling to placement new?

Score: 0

Views: 107

Answers: 1

Read More
ValueError
ValueError

Reputation: 283

Can I use placement new with class array?

Score: 1

Views: 86

Answers: 1

Read More
PreviousPage 1Next