lock_weak_ref()
template<weak_ref T>
strong_ref_t<T> lock_weak_ref(T&& v);
Creates a strong_ref
from a weak_ref
; for example:
T | lock_weak_ref(T) |
---|---|
std::weak_ptr<T> | std::shared_ptr<T> |
winrt::weak_ref<T> | winrt::com_ptr<T> |