menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

You probab...
source image

Medium

1M

read

402

img
dot

You probably don’t know how to write a proper C++ container…

  • The author initially planned to use the placement `new` operator and the `::new` operator in their C++ container implementation.
  • They encountered an error when using types with deleted default constructors.
  • They learned about the placement `new` operator and how it can be useful for uninitialized memory.
  • They discovered the need to use `::operator new` and `::operator delete` for aligned types like `std::shared_ptr`.

Read Full Article

like

24 Likes

For uninterrupted reading, download the app