Template Function TRAP::UniqueResource#

Function Documentation#

template<typename Resource, typename Deleter>
TRAP::UniqueResource(Resource, Deleter) -> UniqueResource<Resource, Deleter>

One deduction guide is provided for UniqueResource to permit deduction from given resource handle and deleter. The arguments (after array-to-pointer and function-to-pointer decay, if any) are copied or moved into the constructed UniqueResource.