Skip to content
Snippets Groups Projects
Commit 9892f41a authored by Alrik Appelfeldt's avatar Alrik Appelfeldt
Browse files

klar h fil för redovisning

parent 07a1ff45
No related branches found
No related tags found
No related merge requests found
#ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include<iostream>
#include <initializer_list>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
using namespace std;
class List {
public:
List();
List(std::initializer_list<int> const &list);
List(List const& rhs);
List(List&& rhs);
~List();
int at(int const& i) const;
void remove(int const& pos);
int get_size()const;
void Insert_Node(int insert_value);
bool List_Is_Empty();
List& operator =(List const& rhs);
List& operator =(List&& rhs);
class Node {
public:
int value;
Node* next{nullptr};
Node* previous{nullptr};
Node(int insert_value);
};
Node* head{nullptr};
Node* tail{nullptr};
int list_size {};
void printlist();
int get_size();
};
std::ostream& operator << (std::ostream& os, List const& rhs);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment