[#BloombergLP-bdlar-SymbolicConverter-convert-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/SymbolicConverter.adoc[SymbolicConverter]::convert
:relfileprefix: ../../../
:mrdocs:

`convert` overloads

== Synopses

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

Convert the value of the specified `rhs` type&hyphen;erased object to the specified (modifiable) `lhs` type&hyphen;erased object&period; Return 0 on success and a non&hyphen;zero value otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlar/SymbolicConverter/convert-04.adoc[convert](
    xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef] lhs,
    xref:BloombergLP/bdlar/AnyConstRef.adoc[AnyConstRef] rhs);
----

[.small]#xref:BloombergLP/bdlar/SymbolicConverter/convert-04.adoc[_» more&period;&period;&period;_]#

Convert the value of the specified `rhs` object to the specified (modifiable) `lhs` object&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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LHS&lowbar;TYPE,
    class RHS&lowbar;TYPE&gt;
static
int
xref:BloombergLP/bdlar/SymbolicConverter/convert-0e.adoc[convert](
    LHS&lowbar;TYPE* lhs,
    RHS&lowbar;TYPE const& rhs);
----

[.small]#xref:BloombergLP/bdlar/SymbolicConverter/convert-0e.adoc[_» more&period;&period;&period;_]#

Convert the value of the specified `rhs` type&hyphen;erased object to the specified (modifiable) `lhs` type&hyphen;erased object&period; Write diagnostic messages to the specified `errorStream` on failure&period; Return 0 on success and a non&hyphen;zero value otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlar/SymbolicConverter/convert-03.adoc[convert](
    xref:BloombergLP/bdlar/AnyRef.adoc[AnyRef] lhs,
    xref:BloombergLP/bdlar/AnyConstRef.adoc[AnyConstRef] rhs,
    std::ostream& errorStream);
----

[.small]#xref:BloombergLP/bdlar/SymbolicConverter/convert-03.adoc[_» more&period;&period;&period;_]#

Convert the value of the specified `rhs` object to the specified (modifiable) `lhs` object&period; 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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LHS&lowbar;TYPE,
    class RHS&lowbar;TYPE&gt;
static
int
xref:BloombergLP/bdlar/SymbolicConverter/convert-08.adoc[convert](
    LHS&lowbar;TYPE* lhs,
    RHS&lowbar;TYPE const& rhs,
    std::ostream& errorStream);
----

[.small]#xref:BloombergLP/bdlar/SymbolicConverter/convert-08.adoc[_» more&period;&period;&period;_]#


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