[#BloombergLP-balxml-Decoder-decodeAny-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::decodeAny :relfileprefix: ../../../ :mrdocs: Decode the specified `object` of parameterized `TYPE` from the specified input `stream`. Return a reference to the modifiable `stream`. If a decoding error is detected, `stream.fail()` will be `true` after this method returns. The (optionally) specified `uri` is used for identifying the input document in error messages. A compilation error will result unless `TYPE` conforms to the requirements of a `bdlat` sequence or choice, as described in `bdlat_sequencefunctions` and `bdlat_choicefunctions`. Note that this function behaves identically to `decode`, 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_decoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> std::istream& decodeAny( std::istream& stream, TYPE* object, char const* uri = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#