template Error_codeList::remove(intposition,List_entry&x) {
if(count==0) return underflow;
if(position<0||position>=count) return range_error;
x=entry[position];
count−−;
while(position<count){
entry[position]=entry[position‚1]; position++;
}
return success;
}