Special Member Functions - Signatures

Signatures

Here are the correct signatures of each special member function

class MyClass { MyClass; // Default ctor MyClass(int a_param); // Ctor MyClass(const MyClass& other); // Copy ctor MyClass(MyClass&& other); // Move ctor MyClass& operator=(const MyClass& other); // Copy assignment op MyClass& operator=(MyClass&& other); // Move assignment op ~MyClass; // Dtor };

Read more about this topic:  Special Member Functions

Famous quotes containing the word signatures:

    I am not a very sentimental man; and the best sentiment I can think of is, that if you collect the signatures of all persons who are no less distinguished than I, you will have a very undistinguishing mass of names.
    Abraham Lincoln (1809–1865)

    So many signatures for such a small heart.
    Mother Teresa (b. 1910)