logoalt Hacker News

tialaramextoday at 12:05 AM1 replyview on HN

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.


Replies

mgaunardtoday at 3:41 AM

you would use "operator new" (allocates memory only) not "new" (allocates and constructs, and more if using the new[] variant)