This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA v2 1/7] Remove some ui_out-related cleanups from Python
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> I am curious what are the differences between using an
Simon> std::optional and a std::unique_ptr.
[...]
Simon> The obvious one is stack memory allocation for optional and heap for
Simon> unique_ptr, but apart from that, any difference in the functionality?
No, they're basically equivalent.
Tom