[Solved]Effects Adds Element L Order Template Void Append List L Const List Requires Node Root Sor Q37283758
// EFFECTS: Adds all the element of other to l inorder
template <typename T>
void append(List<T>& l, constList<T>& other) {
}
// REQUIRES: Node is the root of a sorted binarytree
// thathas left and right child pointers and a datum of typeT
// EFFECTS: Returns the sorted list of elements forwhich pred returns true
// Hint: you may call the append function you wroteabove
template <typename T, typenamePred_type>
List<T> tree_filter(Node* root, Pred_type pred) {// Tricky
Expert Answer
Answer to // EFFECTS: Adds all the element of other to l in order template void append(List& l, const List& other) { } // REQUIRES… . . .
OR

