This commit is contained in:
Ilusha 2024-03-07 12:31:26 +03:00 committed by Ilya Shurupov
parent 8f38095bec
commit dbd53719b0
8 changed files with 124 additions and 60 deletions

View file

@ -18,7 +18,7 @@ namespace tp {
Type data;
Node* next = nullptr;
Node* prev = nullptr;
Node() = default;
Node() { data = Type(); }
explicit Node(TypeArg p_data) :
data(p_data) {}
Type& operator->() { return data; }