operator<()

SmartPtr::operator<(Y *) const method

Provides less-compare semantics for SmartPtr class.

template<class Y> bool System::SmartPtr<T>::operator<(Y *p) const

Template parameters

ParameterDescription
YType of pointer to compare current one to.

Arguments

ParameterTypeDescription
pY *Pointer to compare current one to.

Return Value

True if the object referenced by SmartPtr is ’less’ than p and false otherwise.

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

Provides less-compare semantics for SmartPtr class.

template<class Y> bool System::SmartPtr<T>::operator<(SmartPtr<Y> const &x) const

Template parameters

ParameterDescription
YType of pointer to compare current one to.

Arguments

ParameterTypeDescription
xSmartPtr<Y> const&Pointer to compare current one to.

Return Value

True if the object referenced by SmartPtr is ’less’ than x and false otherwise.

See Also