[#boost-urls-authority_view-size]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority&lowbar;view]::size
:relfileprefix: ../../../
:mrdocs:

Return the number of characters in the authority

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L201[boost&sol;url&sol;authority&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
size() const noexcept;
----

== Description

This function returns the number of characters in the authority&period;

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

== Return Value

The number of characters in the authority


[.small]#Created with https://www.mrdocs.com[MrDocs]#
