Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
static_url_base::size

(Inherited from url_view_base)

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( url_view( "file:///Program%20Files" ).size() == 23 );
Complexity

Constant.

Exception Safety

Throws nothing.


PrevUpHomeNext