Returns true if the input string can be parsed as an IP address.

Synopsis

Declared in <folly/IPAddress.h>

static
bool
validate(StringPiece ip) noexcept;

Return Value

true if ip can be parsed as an IP address.

Parameters

Name

Description

ip

The candidate string to check.

Created with MrDocs