System::SmartPtr::operator* 方法

SmartPtr::operator* method

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

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

ReturnValue

指向对象的引用。

另见


title: System::SmartPtr::operator< 方法 链接标题: operator< second_title: Aspose.Page for C++ description: ‘System::SmartPtr::operator< 方法。为 SmartPtr 类在 C++ 中提供小于比较语义。’ type: docs 权重: 2700 url: /cpp/system/smartptr/operator_/

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

SmartPtr 类提供小于比较语义。

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

ReturnValue

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

另见

SmartPtr::operator<(Y *) const method

SmartPtr 类提供小于比较语义。

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

ReturnValue

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

另见