chsvlib
chsv helper source code
◆
ListPushFrontValueByPtr()
EXTERN_C
bool Chusov::ListPushFrontValueByPtr
(
HCHSVLIST
hList
,
void *
lpVal
)
noexcept
Inserts a pointer to the beginning of the list without copying any pointed data.
Parameters
hList
is a handle to the list.
lpVal
is a pointer to be inserted to the list.
Returns
true on success, false on failure.
Remarks
The list is not thread-safe.
The functions like
ListPushBackValueByPtr()
,
ListPushFrontValueByPtr()
,
ListInsertValueBeforeIterByPtr()
,
ListInsertValueAfterIterByPtr()
or
ListIterSetValueByPtr()
perform insertions of only pointers without physical copying of the pointed data. The data itself is ignored by the functions. The size of the data of the inserted elements will be zero, therefore for such elements zero length will be returned by the functions like
ListGetDataSizeFromIter()
.
Declared in
chsvlist.h
.
Chusov
Generated on Wed Mar 22 2023 01:03:40 for chsvlib by
1.9.1