-4

I came across this for move constructors in C++. What does MyIntArray &&src mean? Is it similar to passing a reference of a variable to a function argument ?

    // move constructor
    MyIntArray(MyIntArray &&src) {
        // just swap the array pointers...
        src.swap(*this);
    }

0 Answers0