[#BloombergLP-balxml-Encoder-encodeAny-06b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder.adoc[Encoder]::encodeAny :relfileprefix: ../../../ :mrdocs: Encode the specified non‐modifiable `object` to the specified `formatter`. Return 0 on success, and a non‐zero value otherwise. Note that encoder will use encoder options, error and warning streams specified at the construction time. Also note that this function behaves identically to `encode`, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the `balxml` package documentation for more details. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> int encodeAny( xref:BloombergLP/balxml/Formatter.adoc[Formatter]& formatter, TYPE const& object); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#