Format the url to the output stream
Synopsis
Declared in header </boost/url/url_view_base.hpp#L2778[boost/url/url_view_base.hpp,window=blank_]>
ostream&
operator<<(
ostream& os,
const url_view_base& u);
Description
This function serializes the url to the specified output stream. Any percent-escapes are emitted as-is; no decoding is performed.
Example
url_view u( "http://www.example.com/index.htm" );
std::stringstream ss;
ss << u;
assert( ss.str() == "http://www.example.com/index.htm" );
Effects
return os << u.buffer();
Complexity
Linear in u.buffer().size()
Exception Safety
Basic guarantee.
Return Value
-
``
Parameters
Name | Type |
---|---|
os |
`` |
u |
`` |