#include "OrderedList.h" template OrderedList::OrderedList(const T* elements, unsigned elementsCount) : List::List(elements, elementsCount) {} template bool OrderedList::insert(const T& element) { if (List::length == List::count) List::resize(); unsigned insertionInd = 0; while (List::elements[insertionInd].compare(element) < 0 && insertionInd < List::count) insertionInd++; return List::insertAt(element, insertionInd); }