linked_list/linked_list/LinkedList.cpp
// remove firt item and return its value
remove firt item and return its value
remove firt item and return its value
int LinkedList::pop_front() {
    if (this->empty()) {
        throw new std::exception ;
    }
    int value = (*this->head).value;
    this->head = (*this->head).next;
    this->itemsAmount--;
    return value;
}
int LinkedList :: pop_front ( ) { if ( this -> empty ( ) ) { throw new std :: exception ; } int value = ( * this -> head ) . value ; this -> head = ( * this -> head ) . next ; this -> itemsAmount -- ; return value ; }
remove firt item and return its value
remove firt item and return its value
//"Linked list is empty"