endpoint_type endpoint() const;
Returns: The endpoint associated with the resolver entry.
operator endpoint_type() const;
Returns: endpoint().
template<class Allocator = allocator<char>>
basic_string<char, char_traits<char>, Allocator>
host_name(const Allocator& a = Allocator()) const;
Returns: The host name associated with the resolver entry.
Remarks: Ill-formed unless allocator_traits<Allocator>::value_type is char.
template<class Allocator = allocator<char>>
basic_string<char, char_traits<char>, Allocator>
service_name(const Allocator& a = Allocator()) const;
Returns: The service name associated with the resolver entry.
Remarks: Ill-formed unless allocator_traits<Allocator>::value_type is char.