4 Dec
2023
4 Dec
'23
9:48 p.m.
пн, 4 дек. 2023 г. в 23:05, Bruno Martínez via Boost
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&.