[#BloombergLP-bdlcc-ObjectCatalog-add-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectCatalog.adoc[ObjectCatalog]::add
:relfileprefix: ../../../
:mrdocs:

Add the specified movable `object` to this catalog and return its handle&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;objectcatalog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
add(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;TYPE&gt;] object);
----

== Description

Add the value of the specified `object` to this catalog and return a non&hyphen;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&period; The behavior is undefined if the catalog was full&period;

== Return Value

non&hyphen;zero handle referring to the added object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object to add
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
