BDEX‐stream an enumeration value to stream as a 32‐bit int.
Synopsis
Declared in <bslx_outstreamfunctions.h>
template<
class STREAM,
class TYPE>
STREAM&
bdexStreamOutImp(
STREAM& stream,
TYPE const& value,
int version,
IsEnumType const& category);
Description
Write the specified value to the specified output stream as a 32‐bit int, and return a reference to stream. The specified version is ignored. If stream is initially invalid, this operation has no effect. Note that this function is called only for enumeration types and that if value is outside the range of an int32_t the externalization will be lossy. Also note that this function is for internal use only. See the bslx package‐level documentation for more information on BDEX streaming of value‐semantic types and containers.
Return Value
a reference to stream
Parameters
Name |
Description |
stream |
output stream to write to |
value |
enumeration value to externalize |
version |
ignored version number |
category |
tag selecting the enumeration overload |
Created with MrDocs