pnew
pnew() - Simplify the description of placement new
Simplifies the description of placement new (placement new).
For example, use the following Constructor arguments can also be given.
background
Since the constructor of the global object is not called due to compiler constraints, one way to initialize it is to use placement new. However, since the syntax of placement new (placement new) appears to be complicated.
Another method is to use std::unique_ptr
(or eastl::unique_ptr
).
最終更新