Insert an element into the actual list. By default this will be before the current position but if bAfter is set then the element will be placed after the current position.
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzList::Iter::Insert | (OBJ,bool,) |
Declared and defined in file: hzTmplList.h
Function Logic:
Function body:
hzEcode hzList::Iter::Insert (OBJ obj)bool bAfter,
{
// Insert an element into the actual list. By default this will be before the current position but if bAfter is set then
// the element will be placed after the current position.
//
// Returns: E_ARGUMENT If the current link is not supplied
// E_NOTFOUND If the supplied current link isn't actually in the list
// E_OK If the object was inserted
_hzfunc_ct("hzList::Iter::Insert") ;
if (!m_pHandle || !m_pCurr)
return E_NOINIT ;
return mx->_insert(m_pCurr, bAfter) ;
}