has_port Return true if a port is present Synopsis bool has_port() const noexcept; Declared in file <include/boost/url/authority_view.hpp> on line 1098 Defined in file <src/authority_view.cpp> on line 291 Description This function returns true if an authority is present and contains a port. Example assert( url_view( "wss://www.example.com:443" ).has_port() ); Complexity Constant. Exception Safety Throws nothing. BNF authority = [ userinfo "@" ] host [ ":" port ] port = *DIGIT Specification 3.2.3. Port (rfc3986)