33template<
class LListBase,
class T>
36 LList<LListBase,
T*>()
38 for (
auto iter = lst.cbegin(); iter != lst.cend(); ++iter)
40 this->push_back((*iter).clone().ptr());
45template<
class LListBase,
class T>
56template<
class LListBase,
class T>
65template<
class LListBase,
class T>
75 T*
p = this->removeHead();
82template<
class LListBase,
class T>
90template<
class LListBase,
class T>
100template<
class LListBase,
class T>
105 for (
auto iter = lst.
cbegin(); iter != lst.
cend(); ++iter)
112template<
class LListBase,
class T>
Template class for non-intrusive linked lists.
void transfer(LList< LListBase, T > &lst)
Transfer the contents of the argument into this List and annul the argument list.
void push_back(const T &elem)
void clear()
Delete contents of list.
Template class for non-intrusive linked PtrLists.
void pop_front(label n=1)
Remove first element(s) from the list (deletes pointers).
const_iterator cbegin() const
Iterator to first item in list with const access.
const const_iterator & cend() const
End of list for forward iterators.
void operator=(const LPtrList< LListBase, T > &lst)
Copy assign by using 'clone()' for each element.
void transfer(LPtrList< LListBase, T > &lst)
Transfer the contents of the argument into this List and annul the argument list.
void clear()
Clear the contents of the list.
LPtrList()=default
Default construct.
~LPtrList()
Destructor. Calls clear().
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)