[Development] The future of smart pointers in Qt API
Matthew Woehlke
mwoehlke.floss at gmail.com
Mon Feb 3 22:44:27 CET 2020
On 01/02/2020 07.31, Allan Sandfeld Jensen wrote:
> It is still a terrible name. Unique pointer refers to something
> std::unique_ptr can abstractly achieve, but not what it actually is.
It refers to something that had *better* be achieved, or else you're
using it wrong.
The *ownership* is unique. There is, at any given time, exactly *one*
entity which *uniquely* holds ownership of the pointer.
This is in contrast to a *shared* pointer, where the ownership is, well,
*shared*.
--
Matthew
More information about the Development
mailing list