[#BloombergLP-bdlcc-ObjectCatalog-replace-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectCatalog.adoc[ObjectCatalog]::replace :relfileprefix: ../../../ :mrdocs: Replace the object having the specified `handle` with the specified `newObject`, leaving `newObject` in an unspecified but valid state. Return 0 on success, and a non‐zero value if the handle is not contained in this catalog. == Synopsis Declared in `<bdlcc_objectcatalog.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int replace( int handle, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<TYPE>] newObject); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#