BloombergLP::balxml::Encoder::encodeAny

Encode the specified object without instantiating templates at compile time.

Synopsis

Declared in <balxml_encoder.h>

int
encodeAny(
    Formatter& formatter,
    bdlar::AnyConstRef const& object);

Description

Return 0 on success, and a non-zero value otherwise.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
formatterXML formatter to receive the encoded value
objecttype-erased value to encode