Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzMapM::Insert | (const KEY&,const OBJ&,) |
Declared and defined in file: hzTmplMapM.h
Function Logic:
Function body:
hzEcode hzMapM::Insert (const KEY& key, const OBJ& obj) { _hzfunc("hzMapM::Insert") ; _hz_map_bkt<KEY,OBJ>* pBuck ; _hz_vn_Dat* pDN ; int32_t nSlot ; pDN = base.InsertKeyM(nSlot, &key) ; if (pDN) { pBuck = (_hz_map_bkt<KEY,OBJ>*) pDN->m_pElements ; pBuck->m_Keys[nSlot] = key ; pBuck->m_Objs[nSlot] = obj ; return E_OK ; } return hzerr(E_CORRUPT, "Failed to Insert") ; }