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

Format the encoded authority to the output stream

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L1495[boost&sol;url&sol;authority&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
operator&lt;&lt;(
    std::ostream& os,
    xref:boost/urls/authority_view.adoc[authority&lowbar;view] const& a);
----

== Description

This hidden friend function serializes the encoded URL to the output stream&period;

== Example

[,cpp]
----
authority_view a( "www.example.com" );

std::cout << a << std::endl;
----
Format the encoded authority to the output stream

This function serializes the encoded URL to the output stream&period;

== Example

[,cpp]
----
authority_view a( "www.example.com" );

std::cout << a << std::endl;
----
== Return Value

A reference to the output stream, for chaining

== Parameters

[cols="1,4"]
|===
|Name|Description

| *os*
| The output stream to write to
| *a*
| The URL to write
|===


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