|
|
|
|
|
|
|
|
template<class R, class D> |
|
|
template<class R, class D> |
|
|
unique_resource(R&& r, D&& d) -> unique_resource<std::decay_t<R>, std::decay_t<D>>; |
|
|
unique_resource(R&& r, D&& d) -> unique_resource<std::decay_t<R>, std::decay_t<D>>; |
|
|
|
|
|
|
|
|
template<class R, class D> |
|
|
|
|
|
unique_resource(std::reference_wrapper<R> r, D&& d) -> unique_resource<R&, std::decay_t<D>>; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<class R, class D, class S = R> |
|
|
template<class R, class D, class S = R> |
|
|
unique_resource<std::decay_t<R>, std::decay_t<D>> make_unique_resource_checked(R&& r, const S& invalid, D&& d) |
|
|
unique_resource<std::decay_t<R>, std::decay_t<D>> make_unique_resource_checked(R&& r, const S& invalid, D&& d) |