encodeAnyToStream overloads

Synopses

Declared in <balxml_encoder.h>

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

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

Encode the specified non‐modifiable object to the specified stream.

template<class TYPE>
int
encodeAnyToStream(
    std::ostream& stream,
    TYPE const& object);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream to receive XML

object

type‐erased value to encode

Created with MrDocs