Lines 707-747
_GLIBCXX_BEGIN_NAMESPACE_VERSION
Link Here
|
707 |
|
707 |
|
708 |
template<typename _Tp, typename _Dp, |
708 |
template<typename _Tp, typename _Dp, |
709 |
typename _Up, typename _Ep> |
709 |
typename _Up, typename _Ep> |
710 |
inline bool |
710 |
_GLIBCXX_NODISCARD inline bool |
711 |
operator==(const unique_ptr<_Tp, _Dp>& __x, |
711 |
operator==(const unique_ptr<_Tp, _Dp>& __x, |
712 |
const unique_ptr<_Up, _Ep>& __y) |
712 |
const unique_ptr<_Up, _Ep>& __y) |
713 |
{ return __x.get() == __y.get(); } |
713 |
{ return __x.get() == __y.get(); } |
714 |
|
714 |
|
715 |
template<typename _Tp, typename _Dp> |
715 |
template<typename _Tp, typename _Dp> |
716 |
inline bool |
716 |
_GLIBCXX_NODISCARD inline bool |
717 |
operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept |
717 |
operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept |
718 |
{ return !__x; } |
718 |
{ return !__x; } |
719 |
|
719 |
|
720 |
template<typename _Tp, typename _Dp> |
720 |
template<typename _Tp, typename _Dp> |
721 |
inline bool |
721 |
_GLIBCXX_NODISCARD inline bool |
722 |
operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept |
722 |
operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept |
723 |
{ return !__x; } |
723 |
{ return !__x; } |
724 |
|
724 |
|
725 |
template<typename _Tp, typename _Dp, |
725 |
template<typename _Tp, typename _Dp, |
726 |
typename _Up, typename _Ep> |
726 |
typename _Up, typename _Ep> |
727 |
inline bool |
727 |
_GLIBCXX_NODISCARD inline bool |
728 |
operator!=(const unique_ptr<_Tp, _Dp>& __x, |
728 |
operator!=(const unique_ptr<_Tp, _Dp>& __x, |
729 |
const unique_ptr<_Up, _Ep>& __y) |
729 |
const unique_ptr<_Up, _Ep>& __y) |
730 |
{ return __x.get() != __y.get(); } |
730 |
{ return __x.get() != __y.get(); } |
731 |
|
731 |
|
732 |
template<typename _Tp, typename _Dp> |
732 |
template<typename _Tp, typename _Dp> |
733 |
inline bool |
733 |
_GLIBCXX_NODISCARD inline bool |
734 |
operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept |
734 |
operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept |
735 |
{ return (bool)__x; } |
735 |
{ return (bool)__x; } |
736 |
|
736 |
|
737 |
template<typename _Tp, typename _Dp> |
737 |
template<typename _Tp, typename _Dp> |
738 |
inline bool |
738 |
_GLIBCXX_NODISCARD inline bool |
739 |
operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept |
739 |
operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept |
740 |
{ return (bool)__x; } |
740 |
{ return (bool)__x; } |
741 |
|
741 |
|
742 |
template<typename _Tp, typename _Dp, |
742 |
template<typename _Tp, typename _Dp, |
743 |
typename _Up, typename _Ep> |
743 |
typename _Up, typename _Ep> |
744 |
inline bool |
744 |
_GLIBCXX_NODISCARD inline bool |
745 |
operator<(const unique_ptr<_Tp, _Dp>& __x, |
745 |
operator<(const unique_ptr<_Tp, _Dp>& __x, |
746 |
const unique_ptr<_Up, _Ep>& __y) |
746 |
const unique_ptr<_Up, _Ep>& __y) |
747 |
{ |
747 |
{ |
Lines 752-818
_GLIBCXX_BEGIN_NAMESPACE_VERSION
Link Here
|
752 |
} |
752 |
} |
753 |
|
753 |
|
754 |
template<typename _Tp, typename _Dp> |
754 |
template<typename _Tp, typename _Dp> |
755 |
inline bool |
755 |
_GLIBCXX_NODISCARD inline bool |
756 |
operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
756 |
operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
757 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), |
757 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), |
758 |
nullptr); } |
758 |
nullptr); } |
759 |
|
759 |
|
760 |
template<typename _Tp, typename _Dp> |
760 |
template<typename _Tp, typename _Dp> |
761 |
inline bool |
761 |
_GLIBCXX_NODISCARD inline bool |
762 |
operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
762 |
operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
763 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, |
763 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, |
764 |
__x.get()); } |
764 |
__x.get()); } |
765 |
|
765 |
|
766 |
template<typename _Tp, typename _Dp, |
766 |
template<typename _Tp, typename _Dp, |
767 |
typename _Up, typename _Ep> |
767 |
typename _Up, typename _Ep> |
768 |
inline bool |
768 |
_GLIBCXX_NODISCARD inline bool |
769 |
operator<=(const unique_ptr<_Tp, _Dp>& __x, |
769 |
operator<=(const unique_ptr<_Tp, _Dp>& __x, |
770 |
const unique_ptr<_Up, _Ep>& __y) |
770 |
const unique_ptr<_Up, _Ep>& __y) |
771 |
{ return !(__y < __x); } |
771 |
{ return !(__y < __x); } |
772 |
|
772 |
|
773 |
template<typename _Tp, typename _Dp> |
773 |
template<typename _Tp, typename _Dp> |
774 |
inline bool |
774 |
_GLIBCXX_NODISCARD inline bool |
775 |
operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
775 |
operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
776 |
{ return !(nullptr < __x); } |
776 |
{ return !(nullptr < __x); } |
777 |
|
777 |
|
778 |
template<typename _Tp, typename _Dp> |
778 |
template<typename _Tp, typename _Dp> |
779 |
inline bool |
779 |
_GLIBCXX_NODISCARD inline bool |
780 |
operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
780 |
operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
781 |
{ return !(__x < nullptr); } |
781 |
{ return !(__x < nullptr); } |
782 |
|
782 |
|
783 |
template<typename _Tp, typename _Dp, |
783 |
template<typename _Tp, typename _Dp, |
784 |
typename _Up, typename _Ep> |
784 |
typename _Up, typename _Ep> |
785 |
inline bool |
785 |
_GLIBCXX_NODISCARD inline bool |
786 |
operator>(const unique_ptr<_Tp, _Dp>& __x, |
786 |
operator>(const unique_ptr<_Tp, _Dp>& __x, |
787 |
const unique_ptr<_Up, _Ep>& __y) |
787 |
const unique_ptr<_Up, _Ep>& __y) |
788 |
{ return (__y < __x); } |
788 |
{ return (__y < __x); } |
789 |
|
789 |
|
790 |
template<typename _Tp, typename _Dp> |
790 |
template<typename _Tp, typename _Dp> |
791 |
inline bool |
791 |
_GLIBCXX_NODISCARD inline bool |
792 |
operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
792 |
operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
793 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, |
793 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, |
794 |
__x.get()); } |
794 |
__x.get()); } |
795 |
|
795 |
|
796 |
template<typename _Tp, typename _Dp> |
796 |
template<typename _Tp, typename _Dp> |
797 |
inline bool |
797 |
_GLIBCXX_NODISCARD inline bool |
798 |
operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
798 |
operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
799 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), |
799 |
{ return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), |
800 |
nullptr); } |
800 |
nullptr); } |
801 |
|
801 |
|
802 |
template<typename _Tp, typename _Dp, |
802 |
template<typename _Tp, typename _Dp, |
803 |
typename _Up, typename _Ep> |
803 |
typename _Up, typename _Ep> |
804 |
inline bool |
804 |
_GLIBCXX_NODISCARD inline bool |
805 |
operator>=(const unique_ptr<_Tp, _Dp>& __x, |
805 |
operator>=(const unique_ptr<_Tp, _Dp>& __x, |
806 |
const unique_ptr<_Up, _Ep>& __y) |
806 |
const unique_ptr<_Up, _Ep>& __y) |
807 |
{ return !(__x < __y); } |
807 |
{ return !(__x < __y); } |
808 |
|
808 |
|
809 |
template<typename _Tp, typename _Dp> |
809 |
template<typename _Tp, typename _Dp> |
810 |
inline bool |
810 |
_GLIBCXX_NODISCARD inline bool |
811 |
operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
811 |
operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) |
812 |
{ return !(__x < nullptr); } |
812 |
{ return !(__x < nullptr); } |
813 |
|
813 |
|
814 |
template<typename _Tp, typename _Dp> |
814 |
template<typename _Tp, typename _Dp> |
815 |
inline bool |
815 |
_GLIBCXX_NODISCARD inline bool |
816 |
operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
816 |
operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) |
817 |
{ return !(nullptr < __x); } |
817 |
{ return !(nullptr < __x); } |
818 |
|
818 |
|