[#CNetAddr-IsIPv6] = xref:CNetAddr.adoc[CNetAddr]::IsIPv6 :relfileprefix: ../ :mrdocs: Whether this is a native IPv6 address (not mapped IPv4, not Tor). == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool IsIPv6() const; ---- == Return Value True when the network type is native IPv6. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#