[#boost-urls-url_view_base-size]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base]::size
:relfileprefix: ../../../
:mrdocs:


Return the number of characters in the url

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view_base.hpp#L180[boost&sol;url&sol;url&lowbar;view&lowbar;base&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 url&apos;s encoded string,        not including any null terminator,        if present&period;


=== Example

[,cpp]
----
assert( url_view( "file:///Program%20Files" ).size() == 23 );
----

=== Complexity

Constant&period;


=== Exception Safety

Throws nothing&period;





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