boost::urls::authority_view::empty :: Boost Libraries Documentation

# boost::urls::authority_view::empty

Return true if the authority is empty

## Synopsis

Declared in `<boost/url/authority_view.hpp>`

    bool
    empty() const noexcept;

## Description

An empty authority has an empty host, no userinfo, and no port.

## Example

    assert( authority_view( "" ).empty() );

## Exception Safety

Throws nothing.

## Return Value

`true` if the authority is empty

Created with MrDocs