boost::urls::operator<<

Format the encoded authority to the output stream

Synopsis

Declared in header <boost/url/authority_view.hpp>

std::ostream&
operator<<(
    std::ostream& os,
    authority_view const& a);

Description

This hidden friend function serializes the encoded URL to the output stream.

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.

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