public:
Adds element deeply using X(const X&). Takes O(1) time.
friend void add_element_deep(List<X>* accumulator, const X* x)
Adds list deeply using X(const X&). Takes O(adder->get_length()) time.
friend void add_list_deep(List<X>* accumulator, const List<X>* adder)
Creates a deep clone of list using X(const X&). Takes O(list->get_length()) time.
friend List<X>* clone_deep(const List<X>* list);
|