[#BloombergLP-balber-BerEncoder_Visitor-operator_call]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerEncoder_Visitor.adoc[BerEncoder&lowbar;Visitor]::operator()
:relfileprefix: ../../../
:mrdocs:

Encode the specified `value` using the specified attribute `info`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Synopsis

Declared in `&lt;balber&lowbar;berencoder&period;h&gt;`

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| value to encode
| *info*
| attribute information (id, name, formatting mode)
|===


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