[#BloombergLP-bslx-OutStreamFunctions-bdexStreamOut-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/OutStreamFunctions.adoc[OutStreamFunctions]::bdexStreamOut :relfileprefix: ../../../ :mrdocs: `bdexStreamOut` overloads == Synopses Declared in `<bslx_outstreamfunctions.h>` Write the specified `value` to the specified output `stream`, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If needed, first write the computed version information to the `stream` and if this version is not supported by `TYPE`, `stream` is invalidated. Note that the version is only needed when the (template parameter) `TYPE` is a `bsl::vector` or a user‐defined type. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class TYPE> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c26.adoc[bdexStreamOut]( STREAM& stream, TYPE const& value); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c26.adoc[_» more..._]# Write the specified `bsl::vector<TYPE, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. 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. Note that the version is only needed when the (template parameter) `TYPE` is a `bsl::vector` or a user‐defined type. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class TYPE, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-06.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<TYPE, ALLOC>] const& value); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-06.adoc[_» more..._]# Write the specified `bsls::Types::Int64` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0fa.adoc[bdexStreamOut]( STREAM& stream, xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64] const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0fa.adoc[_» more..._]# Write the specified `bsls::Types::Uint64` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0b9.adoc[bdexStreamOut]( STREAM& stream, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0b9.adoc[_» more..._]# Write the specified `bool` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-03.adoc[bdexStreamOut]( STREAM& stream, bool const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-03.adoc[_» more..._]# Write the specified `char` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0b5.adoc[bdexStreamOut]( STREAM& stream, char const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0b5.adoc[_» more..._]# Write the specified `double` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-001.adoc[bdexStreamOut]( STREAM& stream, double const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-001.adoc[_» more..._]# Write the specified `float` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-084.adoc[bdexStreamOut]( STREAM& stream, float const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-084.adoc[_» more..._]# Write the specified `int` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-05.adoc[bdexStreamOut]( STREAM& stream, int const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-05.adoc[_» more..._]# Write the specified `long` `value` to the specified output `stream` as a 32‐bit `int`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. Note that for platforms where `long` is not equivalent to `int32_t`, this operation may be lossy. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c3.adoc[bdexStreamOut]( STREAM& stream, long const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c3.adoc[_» more..._]# Write the specified `short` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0a6.adoc[bdexStreamOut]( STREAM& stream, short const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0a6.adoc[_» more..._]# Write the specified `signed char` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0aa.adoc[bdexStreamOut]( STREAM& stream, signed char const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0aa.adoc[_» more..._]# Write the specified `bsl::string` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-004.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/string.adoc[bsl::string] const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-004.adoc[_» more..._]# Write the specified `unsigned char` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-07c.adoc[bdexStreamOut]( STREAM& stream, unsigned char const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-07c.adoc[_» more..._]# Write the specified `unsigned int` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0a4.adoc[bdexStreamOut]( STREAM& stream, unsigned int const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0a4.adoc[_» more..._]# Write the specified `unsigned long` `value` to the specified output `stream` as a 32‐bit `unsigned int`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. Note that for platforms where `unsigned long` is not equivalent to `uint32_t`, this operation may be lossy. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c29.adoc[bdexStreamOut]( STREAM& stream, unsigned long const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c29.adoc[_» more..._]# Write the specified `unsigned short` `value` to the specified output `stream`, and return a reference to `stream`. The optionally specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STREAM> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-074.adoc[bdexStreamOut]( STREAM& stream, unsigned short const& value, int version = 0); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-074.adoc[_» more..._]# Write the specified `value`, using the specified `version` format, to the specified output `stream`, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported by `TYPE`, `stream` is invalidated, but otherwise unmodified. Note that `version` is not written to `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class TYPE> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-04f.adoc[bdexStreamOut]( STREAM& stream, TYPE const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-04f.adoc[_» more..._]# Write the specified `bsl::vector<bsls::Types::Int64, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-046.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<bsls::Types::Int64, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-046.adoc[_» more..._]# Write the specified `bsl::vector<bsls::Types::Uint64, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-01b.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<bsls::Types::Uint64, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-01b.adoc[_» more..._]# Write the specified `bsl::vector<char, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-08a.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<char, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-08a.adoc[_» more..._]# Write the specified `bsl::vector<double, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0f2.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<double, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0f2.adoc[_» more..._]# Write the specified `bsl::vector<float, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c4.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<float, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0c4.adoc[_» more..._]# Write the specified `bsl::vector<int, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0e.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<int, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0e.adoc[_» more..._]# Write the specified `bsl::vector<short, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-09.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<short, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-09.adoc[_» more..._]# Write the specified `bsl::vector<signed char, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0cd.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<signed char, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0cd.adoc[_» more..._]# Write the specified `bsl::vector<unsigned char, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-044.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<unsigned char, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-044.adoc[_» more..._]# Write the specified `bsl::vector<unsigned int, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-012.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<unsigned int, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-012.adoc[_» more..._]# Write the specified `bsl::vector<unsigned short, ALLOC>` `value` to the specified output `stream`, and return a reference to `stream`. The specified `version` is ignored. If `stream` is initially invalid, this operation has no effect. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0ad.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<unsigned short, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0ad.adoc[_» more..._]# Write the specified `bsl::vector<TYPE, ALLOC>` `value`, using the specified `version` format, to the specified output `stream`, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported by `TYPE` and the vector is not empty, `stream` is invalidated, but otherwise unmodified. Note that the specified `TYPE` might not require a `version` to be serialized and that `version` is not written to `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class STREAM, class TYPE, class ALLOC> STREAM& xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0d.adoc[bdexStreamOut]( STREAM& stream, xref:bsl/vector-00d.adoc[bsl::vector<TYPE, ALLOC>] const& value, int version); ---- [.small]#xref:BloombergLP/bslx/OutStreamFunctions/bdexStreamOut-0d.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#