System::SmartPtr::operator bool 方法

SmartPtr::operator bool method

检查指针是否非空。

System::SmartPtr<T>::operator bool() const noexcept

ReturnValue

如果指针为 null 则为 False,否则为 true。

另见