[#BloombergLP-bdlcc-ObjectCatalog-replace-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectCatalog.adoc[ObjectCatalog]::replace :relfileprefix: ../../../ :mrdocs: `replace` overloads == Synopses Declared in `<bdlcc_objectcatalog.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/ObjectCatalog/replace-01.adoc[replace]( int handle, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<TYPE>] newObject); ---- [.small]#xref:BloombergLP/bdlcc/ObjectCatalog/replace-01.adoc[_» more..._]# Replace the object having the specified `handle` with the specified `newObject`. Return 0 on success, and a non‐zero value if the handle is not contained in this catalog. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/ObjectCatalog/replace-07.adoc[replace]( int handle, TYPE const& newObject); ---- [.small]#xref:BloombergLP/bdlcc/ObjectCatalog/replace-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#