System::SmartPtr::operator* 方法

SmartPtr::operator* method

获取指向对象的引用。断言指针非空。

Pointee_ & System::SmartPtr<T>::operator*() const

ReturnValue

指向对象的引用。

另见


title: System::SmartPtr::operator< 方法 linktitle: operator< 次标题: Aspose.Font for C++ description: ‘System::SmartPtr::operator< 方法。为 SmartPtr 类在 C++ 中提供小于比较语义。’ 类型: 文档 weight: 2700 url: /cpp/system/smartptr/operator_/

SmartPtr::operator<(SmartPtr<Y> const&) const method

SmartPtr 类提供 less-compare 语义。

template<class Y> bool System::SmartPtr<T>::operator<(SmartPtr<Y> const &x) const
参数描述
Y用于比较当前指针的指针类型。
参数类型描述
xSmartPtr<Y> const&用于比较当前指针的指针。

ReturnValue

如果 SmartPtr 引用的对象小于 x 则为 true,否则为 false。

另见

SmartPtr::operator<(Y *) const method

SmartPtr 类提供 less-compare 语义。

template<class Y> bool System::SmartPtr<T>::operator<(Y *p) const
参数描述
Y用于比较当前指针的指针类型。
参数类型描述
pY *用于比较当前指针的指针。

ReturnValue

如果 SmartPtr 引用的对象小于 p 则为 true,否则为 false。

另见