Return the number of characters in the authority

Synopsis

Declared in header </boost/url/authority_view.hpp#L191[boost/url/authority_view.hpp,window=blank_]>

size_t
size() const noexcept;

Description

This function returns the number of characters in the authority.

Example

assert( authority_view( "user:pass@www.example.com:8080" ).size() == 30 );

Exception Safety

Throws nothing.

Return Value

  • size_t