30 template<
class LListBase,
class T>
33 for (const_iterator iter = lst.begin(); iter != lst.end(); ++iter)
35 this->append(iter().
clone().ptr());
40 template<
class LListBase,
class T>
49 template<
class LListBase,
class T>
58 template<
class LListBase,
class T>
62 if ((tPtr = this->removeHead()))
74 template<
class LListBase,
class T>
77 const label oldSize = this->size();
78 for (
label i=0; i<oldSize; ++i)
87 template<
class LListBase,
class T>
97 template<
class LListBase,
class T>
104 this->append(iter().
clone().ptr());
109 template<
class LListBase,
class T>
void operator=(const LPtrList< LListBase, T > &)
Assignment operator.
void transfer(LPtrList< LListBase, T > &)
Transfer the contents of the argument into this List.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Template class for non-intrusive linked lists.
bool eraseHead()
Remove the head element from the list and delete the pointer.
An STL-conforming const_iterator.
Template class for non-intrusive linked PtrLists.
void clear()
Clear the contents of the list.
LPtrList()
Null construct.