BloombergLP::bdlcc::ObjectCatalog::replace

replace overloads

Synopses

Declared in <bdlcc_objectcatalog.h>

Replace the object with the specified handle with movable newObject.

int
replace(
    int handle,
    bslmf::MovableRef<TYPE> newObject);
» more...

Replace the object with the specified handle with newObject.

int
replace(
    int handle,
    TYPE const& newObject);
» more...

Return Value

0 on success, and a non-zero value if not found

Parameters

NameDescription
handlehandle of the object to replace
newObjectreplacement value