[#BloombergLP-bdlat_SymbolicConverter-convert-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_SymbolicConverter.adoc[bdlat&lowbar;SymbolicConverter]::convert
:relfileprefix: ../../
:mrdocs:

Convert the value of the specified `rhs` to the specified `lhs`&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;symbolicconverter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LHS&lowbar;TYPE,
    class RHS&lowbar;TYPE&gt;
static
int
convert(
    LHS&lowbar;TYPE* lhs,
    RHS&lowbar;TYPE const& rhs);
----

== Description

Optionally specify an `errorStream` to print error messages&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The supported conversions are described in the `bdlat&lowbar;symbolicconverter` component&hyphen;level documentation&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| destination object to receive the converted value
| *rhs*
| source object to convert from
|===


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