Function Address.isV4

Determines whether this is an IPv4 address.

bool isV4() pure nothrow @nogc @safe const;

Returns

true if this is an IPv4 address, false otherwise.

Example

assert(Address(Address4.any()).isV4());