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

Writes a human&hyphen;readable form of a chainstate role to a stream&period;

== Synopsis

Declared in `&lt;kernel&sol;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
operator&lt;&lt;(
    std::ostream& os,
    xref:kernel/ChainstateRole.adoc[ChainstateRole] const& role);
----

== Return Value

The output stream `os`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *os*
| Output stream to write to&period;
| *role*
| Chainstate role to format&period;
|===


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