13 template<
class T,
class... constructor_args_t>
18 std::make_unique<T>(std::forward<constructor_args_t>(args)...));
21 template<
class T,
class deleter_t,
class... constructor_args_t>
26 std::unique_ptr<T, deleter_t>(
new T(std::forward<constructor_args_t>(args)...), std::move(deleter)));
32 template<
class T,
class... args_t>
33 void smart_ptr_ref_adapter<std::unique_ptr, T, args_t...>::reset(smart_ptr_ref_adapter other) noexcept
35 *
this = std::move(other);
38 template<
class T,
class... args_t>
39 template<
class... constructor_args_t>
40 smart_ptr_ref_adapter<std::unique_ptr, T, args_t...>::smart_ptr_ref_adapter(private_token, constructor_args_t&&... args)
41 : super(std::forward<constructor_args_t>(args)...)
unique_ref< T, deleter_t > make_unique_ref_with_deleter(deleter_t deleter, constructor_args_t &&... args)
Make a unique ref with a custom deleter.
unique_ref< T > make_unique_ref(constructor_args_t &&... args)
Make a unique ref (same as std::make_unique but for qx::unique_ref)