mercredi 1 juillet 2020

How to create deep copy constructor?

I have this code and I have to create a copy constructor to create a deep copy of the passed object how to do it?

template<typename T>
class SSL {
    struct Node {
        T data;
        Node* next;
    };
    Node* head = nullptr;
public:
    // ...
};

Aucun commentaire:

Enregistrer un commentaire