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

Whether this is an IPv4 address (&colon;&colon;FFFF&colon;0&colon;0&sol;96, 0&period;0&period;0&period;0&sol;0)&period;

== Synopsis

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

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

== Return Value

True when the network type is IPv4&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]#
