#pragma once #include #include class Tree { public: Tree() = default; // Speciella medlemsfunktioner Tree(Tree const&) = delete; Tree(Tree&&) = delete; ~Tree(); Tree& operator=(Tree const&) = delete; Tree& operator=(Tree&&) = delete; // Operationer void insert(int key); bool contains(int key) const; void print(std::ostream& os) const; std::vector inorder() const; std::vector preorder() const; std::vector postorder() const; // Inreklass för noder struct Node; private: Node* root { nullptr }; };