BloombergLP::balxml::Encoder::encodeAnyToStream

Encode the specified object to the specified stream without instantiating encoding templates at compile time.

Synopsis

Declared in <balxml_encoder.h>

int
encodeAnyToStream(
    std::ostream& stream,
    bdlar::AnyConstRef const& object);

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamoutput stream to receive XML
objecttype-erased value to encode