Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
url_view_base::size

Return the number of characters in the url.

Synopsis
std::size_t
size() const;
Description

This function returns the number of characters in the url's encoded string, not including any null terminator, if present.

Example
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "file:///Program%20Files" ).[link url.ref.boost__urls__url_view_base.size `size`]() == 23 );
Complexity

Constant.

Exception Safety

Throws nothing.


PrevUpHomeNext