[#boost-urls-operator_lshift-038]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::operator&lt;&lt;
:relfileprefix: ../../
:mrdocs:

Format to an output stream

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L344[boost&sol;url&sol;segments&lowbar;encoded&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
operator&lt;&lt;(
    std::ostream& os,
    xref:boost/urls/segments_encoded_base.adoc[segments&lowbar;encoded&lowbar;base] const& ps);
----

== Description

Any percent&hyphen;escapes are emitted as&hyphen;is&semi; no decoding is performed&period;

== Complexity
Linear in `ps&period;buffer()&period;size()`&period;

== Effects
[,cpp]
----
return os << ps.buffer();
----
== Return Value

A reference to the output stream&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *os*
| The output stream to write to&period;
| *ps*
| The object to format&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
