Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzSet::Insert | (const KEY&,) |
Declared and defined in file: hzTmplSet.h
Function Logic:
Function body:
hzEcode hzSet::Insert (const KEY& key) { _hzfunc("hzSet::Insert") ; _hz_set_bkt<KEY>* pBuck ; _hz_vn_Dat* pDN ; int32_t nSlot ; pDN = base.InsertKeyU(nSlot, &key) ; if (pDN) { pBuck = (_hz_set_bkt<KEY>*) pDN->m_pElements ; pBuck->m_Keys[nSlot] = key ; return E_OK ; } return E_CORRUPT ; }