:relfileprefix: ../../../
[#6F913088C0451AB934FC12066A2BA6B82552A053]

= Function url_view_base::size

pass:v,q[Return the number of characters in the url]


== Synopsis

Declared in header `</boost/url/url_view_base.hpp#L165[boost/url/url_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
size_t
size() const noexcept;
----

== Description

pass:v,q[This function returns the number of] pass:v,q[characters in the url's encoded string,]
pass:v,q[not including any null terminator,]
pass:v,q[if present.]

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

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `size_t` 




