[#CNetAddr-IsIPv6]
= xref:CNetAddr.adoc[CNetAddr]::IsIPv6
:relfileprefix: ../
:mrdocs:

Whether this is a native IPv6 address (not mapped IPv4, not Tor)&period;

== Synopsis

Declared in `&lt;netaddress&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
IsIPv6() const;
----

== Return Value

True when the network type is native IPv6&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
