Add the specified movable object to this catalog and return its handle.

Synopsis

Declared in <bdlcc_objectcatalog.h>

int
add(bslmf::MovableRef<TYPE> object);

Description

Add the value of the specified object to this catalog and return a non‐zero integer handle that may be used to refer to the object in future calls to this catalog, leaving object in an unspecified but valid state. The behavior is undefined if the catalog was full.

Return Value

non‐zero handle referring to the added object

Parameters

Name

Description

object

object to add

Created with MrDocs