| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzVect::Add | (OBJ,) |
Declared and defined in file: hzTmplVect.h
Function Logic:
Function body:
hzEcode hzVect::Add (OBJ key)
{
_hzfunc("hzVect::Add") ;
_hz_set_bkt<OBJ>* pBuck ;
_hz_vn_Dat* pDN ;
int32_t nSlot ;
pDN = base.InsertPosn(nSlot, Count()) ;
if (pDN)
{
pBuck = (_hz_set_bkt<OBJ>*) pDN->m_pElements ;
pBuck->m_Keys[nSlot] = key ;
return E_OK ;
}
return E_CORRUPT ;
}