[#BloombergLP-bslx-InStreamFunctions-bdexStreamIn-0fc]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/InStreamFunctions.adoc[InStreamFunctions]::bdexStreamIn
:relfileprefix: ../../../
:mrdocs:

`bdexStreamIn` overloads

== Synopses

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

BDEX&hyphen;stream `variable` from `stream` (version computed if needed)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class VALUE&lowbar;TYPE&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c6.adoc[bdexStreamIn](
    STREAM& stream,
    VALUE&lowbar;TYPE& variable);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c6.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector` from `stream` (version read from stream)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class VALUE&lowbar;TYPE,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-090.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;VALUE&lowbar;TYPE, ALLOC&gt;]& variable);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-090.adoc[_» more&period;&period;&period;_]#

Assign a `bsls&colon;&colon;Types&colon;&colon;Int64` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0d1.adoc[bdexStreamIn](
    STREAM& stream,
    xref:BloombergLP/bsls/Types/Int64.adoc[bsls::Types::Int64]& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0d1.adoc[_» more&period;&period;&period;_]#

Assign a `bsls&colon;&colon;Types&colon;&colon;Uint64` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0a4.adoc[bdexStreamIn](
    STREAM& stream,
    xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64]& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0a4.adoc[_» more&period;&period;&period;_]#

Assign a `bool` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-02.adoc[bdexStreamIn](
    STREAM& stream,
    bool& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-02.adoc[_» more&period;&period;&period;_]#

Assign a `char` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f7e.adoc[bdexStreamIn](
    STREAM& stream,
    char& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f7e.adoc[_» more&period;&period;&period;_]#

Assign a `double` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-047.adoc[bdexStreamIn](
    STREAM& stream,
    double& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-047.adoc[_» more&period;&period;&period;_]#

Assign a `float` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f77.adoc[bdexStreamIn](
    STREAM& stream,
    float& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f77.adoc[_» more&period;&period;&period;_]#

Assign an `int` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0d6.adoc[bdexStreamIn](
    STREAM& stream,
    int& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0d6.adoc[_» more&period;&period;&period;_]#

Assign a 32&hyphen;bit `int` (`long`) value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0fd.adoc[bdexStreamIn](
    STREAM& stream,
    long& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0fd.adoc[_» more&period;&period;&period;_]#

Assign a `short` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f5.adoc[bdexStreamIn](
    STREAM& stream,
    short& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f5.adoc[_» more&period;&period;&period;_]#

Assign a `signed char` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-049.adoc[bdexStreamIn](
    STREAM& stream,
    signed char& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-049.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;string` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c3.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/string.adoc[bsl::string]& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c3.adoc[_» more&period;&period;&period;_]#

Assign an `unsigned char` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-05.adoc[bdexStreamIn](
    STREAM& stream,
    unsigned char& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-05.adoc[_» more&period;&period;&period;_]#

Assign an `unsigned int` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c2.adoc[bdexStreamIn](
    STREAM& stream,
    unsigned int& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c2.adoc[_» more&period;&period;&period;_]#

Assign a 32&hyphen;bit `unsigned int` (`unsigned long`) from `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-099.adoc[bdexStreamIn](
    STREAM& stream,
    unsigned long& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-099.adoc[_» more&period;&period;&period;_]#

Assign an `unsigned short` value read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STREAM&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0b.adoc[bdexStreamIn](
    STREAM& stream,
    unsigned short& variable,
    int version = 0);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0b.adoc[_» more&period;&period;&period;_]#

BDEX&hyphen;stream `variable` from `stream` using the given `version`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class VALUE&lowbar;TYPE&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-08.adoc[bdexStreamIn](
    STREAM& stream,
    VALUE&lowbar;TYPE& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-08.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;Int64&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f7d.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsls::Types::Int64, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f7d.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;Uint64&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0ae.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;bsls::Types::Uint64, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0ae.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;char&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c9.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;char, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0c9.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;double&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-092.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;double, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-092.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;float&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-00.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;float, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-00.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;int&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-04c.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;int, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-04c.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;short&gt;` read from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0a9.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;short, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0a9.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;signed char&gt;` from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-041.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;signed char, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-041.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;unsigned char&gt;` from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f8.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;unsigned char, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0f8.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;unsigned int&gt;` from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-06.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;unsigned int, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-06.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector&lt;unsigned short&gt;` from `stream` to `variable`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-04f.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;unsigned short, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-04f.adoc[_» more&period;&period;&period;_]#

Assign a `bsl&colon;&colon;vector` from `stream` using the given `version`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class STREAM,
    class VALUE&lowbar;TYPE,
    class ALLOC&gt;
STREAM&
xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0fb.adoc[bdexStreamIn](
    STREAM& stream,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;VALUE&lowbar;TYPE, ALLOC&gt;]& variable,
    int version);
----

[.small]#xref:BloombergLP/bslx/InStreamFunctions/bdexStreamIn-0fb.adoc[_» more&period;&period;&period;_]#

== Return Value

a reference to `stream`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| input stream from which to read
| *variable*
| object to receive the unexternalized value
| *version*
| optional BDEX version (ignored for this type)
|===


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