:relfileprefix: ../../../
[#boost-urls-authority_view-size]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/authority_view.adoc[pass:[authority_view]]::size


Return the number of characters in the authority


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L191[boost/url/authority_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:std.adoc[std]::size_t
size() const noexcept;
----

== Description


This function returns the number of
characters in the authority.

=== Example
[,cpp]
----
assert( authority_view( "user:pass@www.example.com:8080" ).size() == 30 );
----

=== Exception Safety

Throws nothing.








