[#boost-urls-url_view_base-size] = xref:boost/urls/url_view_base/size.adoc[boost::urls::url_view_base::size] :relfileprefix: ../../../ :mrdocs: Return the number of characters in the url == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view_base.hpp#L184[boost/url/url_view_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const noexcept; ---- == Description This function returns the number of characters in the url's encoded string, not including any null terminator, if present. == Example [,cpp] ---- assert( url_view( "file:///Program%20Files" ).size() == 23 ); ---- == Complexity Constant. == Exception Safety Throws nothing. == Return Value The number of characters in the url. [.small]#Created with https://www.mrdocs.com[MrDocs]#