Boost logo

Boost :

From: Дмитрий Архипов (grisumbras_at_[hidden])
Date: 2023-12-04 21:48:27


пн, 4 дек. 2023 г. в 23:05, Bruno Martínez via Boost <boost_at_[hidden]>:
>
> Hi,
>
> unique_ptr can emulate unique_resource:

This is only true for resources that are cheap to copy, e.g. pointers
and integers. For anything else unique_ptr::get will become
prohibitively expensive. For example, unque_resource can be used to
implement a temporary directory holder, with get() returning
filesystem::path const&.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk