logoalt Hacker News

mgaunardyesterday at 11:31 PM2 repliesview on HN

even when you write your own container, you do not use new and delete.


Replies

tialaramextoday at 12:05 AM

Are you sure? It seems as though ultimately Microsoft's STL for example ends up calling std::allocator's allocate function which uses the new operator.

show 1 reply
edflsafoiewqtoday at 7:38 AM

You might use placement new though.