Lines Matching refs:operator

47     friend bool operator==(const compact_ipdata& a, const compact_ipdata& b) {
73 friend bool operator!=(const compact_ipdata& a, const compact_ipdata& b) { return !(a == b); }
77 friend bool operator<(const compact_ipdata& a, const compact_ipdata& b) {
108 void operator()(struct addrinfo* p) const { in operator() function
152 IPAddress& operator=(const IPAddress&) = default; variable
153 IPAddress& operator=(IPAddress&&) = default; variable
160 friend std::ostream& operator<<(std::ostream& os, const IPAddress& ip) {
164 friend bool operator==(const IPAddress& a, const IPAddress& b) { return (a.mData == b.mData); }
165 friend bool operator!=(const IPAddress& a, const IPAddress& b) { return (a.mData != b.mData); }
166 friend bool operator<(const IPAddress& a, const IPAddress& b) { return (a.mData < b.mData); }
167 friend bool operator>(const IPAddress& a, const IPAddress& b) { return (b.mData < a.mData); }
168 friend bool operator<=(const IPAddress& a, const IPAddress& b) { return (a < b) || (a == b); }
169 friend bool operator>=(const IPAddress& a, const IPAddress& b) { return (b < a) || (a == b); }
216 IPPrefix& operator=(const IPPrefix&) = default; variable
217 IPPrefix& operator=(IPPrefix&&) = default; variable
228 friend std::ostream& operator<<(std::ostream& os, const IPPrefix& prefix) {
232 friend bool operator==(const IPPrefix& a, const IPPrefix& b) { return (a.mData == b.mData); }
233 friend bool operator!=(const IPPrefix& a, const IPPrefix& b) { return (a.mData != b.mData); }
234 friend bool operator<(const IPPrefix& a, const IPPrefix& b) { return (a.mData < b.mData); }
235 friend bool operator>(const IPPrefix& a, const IPPrefix& b) { return (b.mData < a.mData); }
236 friend bool operator<=(const IPPrefix& a, const IPPrefix& b) { return (a < b) || (a == b); }
237 friend bool operator>=(const IPPrefix& a, const IPPrefix& b) { return (b < a) || (a == b); }
278 IPSockAddr& operator=(const IPSockAddr&) = default; variable
279 IPSockAddr& operator=(IPSockAddr&&) = default; variable
286 operator sockaddr_storage() const noexcept { in sockaddr_storage()
305 friend std::ostream& operator<<(std::ostream& os, const IPSockAddr& prefix) {
309 friend bool operator==(const IPSockAddr& a, const IPSockAddr& b) {
312 friend bool operator!=(const IPSockAddr& a, const IPSockAddr& b) {
315 friend bool operator<(const IPSockAddr& a, const IPSockAddr& b) { return (a.mData < b.mData); }
316 friend bool operator>(const IPSockAddr& a, const IPSockAddr& b) { return (b.mData < a.mData); }
317 friend bool operator<=(const IPSockAddr& a, const IPSockAddr& b) { return (a < b) || (a == b); }
318 friend bool operator>=(const IPSockAddr& a, const IPSockAddr& b) { return (b < a) || (a == b); }