[#BloombergLP-bslx-OutStreamFunctions-bdexStreamOut-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/OutStreamFunctions.adoc[OutStreamFunctions]::bdexStreamOut
:relfileprefix: ../../../
:mrdocs:

Write the specified `bsl&colon;&colon;vector&lt;TYPE, ALLOC&gt;` `value` to the specified output `stream`, and return a reference to `stream`&period; If `stream` is initially invalid, this operation has no effect&period; If needed, first write the computed version information to the `stream` and if this version is not supported by `TYPE` and the vector is not empty, `stream` is invalidated&period; Note that the version is only needed when the (template parameter) `TYPE` is a `bsl&colon;&colon;vector` or a user&hyphen;defined type&period; See the `bslx` package&hyphen;level documentation for more information on BDEX streaming of value&hyphen;semantic types and containers&period;

== Synopsis

Declared in `&lt;bslx&lowbar;outstreamfunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class TYPE,
    class ALLOC&gt;
STREAM&
bdexStreamOut(
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;TYPE, ALLOC&gt;] const& value);
----


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