[#BloombergLP-bdlat_ValueTypeFunctions-assign]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ValueTypeFunctions.adoc[bdlat&lowbar;ValueTypeFunctions]::assign
:relfileprefix: ../../
:mrdocs:

Assign the value of the specified `rhs` to the object specified its address `lhs`&period; Return 0 if successful, and a non&hyphen;zero value otherwise&period;

== Synopsis

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

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


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