[#BloombergLP-bdlat_ValueTypeFunctions-assign] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ValueTypeFunctions.adoc[bdlat_ValueTypeFunctions]::assign :relfileprefix: ../../ :mrdocs: Assign the value of the specified `rhs` to the object specified its address `lhs`. Return 0 if successful, and a non‐zero value otherwise. == Synopsis Declared in `<bdlat_valuetypefunctions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> int assign( LHS_TYPE* lhs, RHS_TYPE const& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#