C++ Logo


Advanced search

Re: default_new?

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 23 Nov 2022 08:16:11 -0800
On Wednesday, 23 November 2022 08:03:28 PST Yongwei Wu via Std-Discussion
> We have std::default_delete in the standard library, but not
> std::default_new. Have there been any proposals for that? If so, what
> were the objections?

What would it do?

std::default_delete can be used as a deleter to std::unique_ptr and other
smart pointer classes (and is the default). There's no such thing as an
allocator parameter to those classes.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2022-11-23 16:16:14