Lines Matching refs:lhs
81 void swap(polymorphic_ptr<T> &lhs, polymorphic_ptr<T> &rhs) {
82 lhs.swap(rhs);
86 bool operator==(const polymorphic_ptr<T> &lhs, const polymorphic_ptr<U> &rhs) {
87 return lhs.get() == rhs.get();
91 bool operator!=(const polymorphic_ptr<T> &lhs, const polymorphic_ptr<U> &rhs) {
92 return lhs.get() != rhs.get();
96 bool operator==(const polymorphic_ptr<T> &lhs, U *rhs) {
97 return lhs.get() == rhs;
101 bool operator!=(const polymorphic_ptr<T> &lhs, U *rhs) {
102 return lhs.get() != rhs;
106 bool operator==(T *lhs, const polymorphic_ptr<U> &rhs) {
107 return lhs == rhs.get();
111 bool operator!=(T *lhs, const polymorphic_ptr<U> &rhs) {
112 return lhs != rhs.get();