[#BloombergLP-balxml-Encoder_EncodeObject-operator_call]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_EncodeObject.adoc[Encoder&lowbar;EncodeObject]::operator()
:relfileprefix: ../../../
:mrdocs:

Encode the specified `object` using metadata from the specified `info`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;encoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class INFO&lowbar;TYPE&gt;
int
operator()(
    TYPE const& object,
    INFO&lowbar;TYPE const& info);
----

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| value to encode
| *info*
| element metadata providing name and formatting mode
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
