Home | Libraries | People | FAQ | More |
Format the URL to the output stream.
Defined in header <boost/url/url_view_base.hpp>
friend std::ostream& operator<<( std::ostream& os, url_view_base const& u);
This function serializes the URL to the specified output stream. Any percent-escapes are emitted as-is; no decoding is performed.
url_view u( "http://www.example.com/index.htm" ); std::stringstream ss; ss << u; assert( ss.str() == "http://www.example.com/index.htm" );
return os << u.buffer();
Linear in u.buffer().size()
Basic guarantee.
A reference to the output stream, for chaining
Name |
Description |
---|---|
|
The output stream to write to. |
|
The URL to write. |
Convenience header <boost/url.hpp>