This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]