:relfileprefix: ../../
[#boost-urls-operator_lshift-0d]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::operator<<


Format the encoded authority to the output stream


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L1403[boost/url/authority_view.hpp,window=blank_]>`

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

=== Description


This hidden friend function serializes the encoded URL
to the output stream.
[,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.
[,cpp]
----
authority_view a( "www.example.com" );

std::cout << a << std::endl;
----




=== Return Value


A reference to the output stream, for chaining



=== Parameters

|===
| Name | Description 

| *os*
| 
The output stream to write to

| *a*
| 
The URL to write

| *os*
| 
The output stream to write to

| *a*
| 
The URL to write

|===




