Detach


Detach list item from the bi-directional linked list not destroying it. Returns next item after the one being detached. Argument head should point to the list head. If list head is being removed, the new list head will be set in this argument value. The third function in the list can be used to detach a list of items starting from first and ending with last.

template<class Type> TList<Type> *Detach(TList<Type> &list);
template<class Type> TList<Type> *Detach(PList<Type> &head, TList<Type> &list);
template<class Type> TList<Type> *Detach(PList<Type> &head, TList<Type> &first, TList<Type> &last);
Namespace: ntl
Include: NTL/Core/List.h