|
427 |
*/ |
427 |
*/ |
428 |
/** @{ */ |
428 |
/** @{ */ |
429 |
template <typename T> |
429 |
template <typename T> |
430 |
bool operator < (const Ptr<T> &lhs, const Ptr<T> &rhs); |
430 |
bool operator < (const Ptr<T> &lhs, const Ptr<T> &rhs) = delete; |
431 |
template <typename T> |
431 |
template <typename T> |
432 |
bool operator <= (const Ptr<T> &lhs, const Ptr<T> &rhs); |
432 |
bool operator <= (const Ptr<T> &lhs, const Ptr<T> &rhs) = delete; |
433 |
template <typename T> |
433 |
template <typename T> |
434 |
bool operator > (const Ptr<T> &lhs, const Ptr<T> &rhs); |
434 |
bool operator > (const Ptr<T> &lhs, const Ptr<T> &rhs) = delete; |
435 |
template <typename T> |
435 |
template <typename T> |
436 |
bool operator >= (const Ptr<T> &lhs, const Ptr<T> &rhs); |
436 |
bool operator >= (const Ptr<T> &lhs, const Ptr<T> &rhs) = delete; |
437 |
/** @} */ |
437 |
/** @} */ |
438 |
|
438 |
|
439 |
/** |
439 |
/** |
|
620 |
return PeekPointer (lhs) != PeekPointer (rhs); |
620 |
return PeekPointer (lhs) != PeekPointer (rhs); |
621 |
} |
621 |
} |
622 |
|
622 |
|
623 |
template <typename T> |
|
|
624 |
bool operator < (const Ptr<T> &lhs, const Ptr<T> &rhs) |
625 |
{ |
626 |
return PeekPointer<T> (lhs) < PeekPointer<T> (rhs); |
627 |
} |
628 |
|
629 |
template <typename T> |
630 |
bool operator <= (const Ptr<T> &lhs, const Ptr<T> &rhs) |
631 |
{ |
632 |
return PeekPointer<T> (lhs) <= PeekPointer<T> (rhs); |
633 |
} |
634 |
|
635 |
template <typename T> |
636 |
bool operator > (const Ptr<T> &lhs, const Ptr<T> &rhs) |
637 |
{ |
638 |
return PeekPointer<T> (lhs) > PeekPointer<T> (rhs); |
639 |
} |
640 |
|
641 |
template <typename T> |
642 |
bool operator >= (const Ptr<T> &lhs, const Ptr<T> &rhs) |
643 |
{ |
644 |
return PeekPointer<T> (lhs) >= PeekPointer<T> (rhs); |
645 |
} |
646 |
|
647 |
/** |
623 |
/** |
648 |
* Cast a Ptr. |
624 |
* Cast a Ptr. |
649 |
* |
625 |
* |