5 #include <hilti/ast/builder/type.h> 6 #include <hilti/ast/operators/common.h> 7 #include <hilti/ast/types/address.h> 12 STANDARD_OPERATOR_2(address, Equal, type::Bool(), type::Address(), type::Address(),
"Compares two address values.")
13 STANDARD_OPERATOR_2(address, Unequal, type::Bool(), type::Address(), type::Address(), "Compares two address values.")
15 BEGIN_METHOD(address, Family)
16 auto signature()
const {
17 return Signature{.self = type::Address(),
18 .result = builder::typeByID(
"hilti::AddressFamily"),
22 Returns the protocol family of the address, which can be IPv4 or IPv6.