Assign a bsl::vector value read from stream to variable.
Synopsis
Declared in <bslx_instreamfunctions.h>
template<
class VALUE_TYPE,
class ALLOC>
static
STREAM&
getArray(
STREAM& stream,
bsl::vector<VALUE_TYPE, ALLOC>& variable);
Description
Assign to the specified variable the bsl::vector<VALUE_TYPE, ALLOC> value read from the specified input stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If stream becomes invalid during this operation, variable has an undefined, but valid, state.
Return Value
a reference to stream
Parameters
Name |
Description |
stream |
input stream from which to read |
variable |
vector to receive the unexternalized values |
Created with MrDocs