On Wednesday, 23 November 2022 08:03:28 PST Yongwei Wu via Std-Discussion
wrote:
> 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
--
Std-Discussion mailing list
Std-Discussion@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion