boost::urls::operator<<
Format the url to the output stream
Synopsis
Declared in header <boost/url/url_view_base.hpp>
std::ostream&
operator<<(
std::ostream& os,
url_view_base const& 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" );
Exception Safety
Basic guarantee.
Format the url to the output stream
This function serializes the url to the specified output stream. Any percent-escapes are emitted as-is; no decoding is performed.
Parameters
Name | Description |
---|---|
os |
The output stream to write to. |
u |
The url to write. |
os |
The output stream to write to. |
u |
The url to write. |