mercredi 27 septembre 2017

What is "&&" in VoidName( vector

This question already has an answer here:

I have recently encountered this code

struct HLD
{
    //typdef vector< vector<long> > dsk;
    dsk ke;
    vector<long> par;
    HLD(dsk &&ke):ke(ke), par(n+1)
    {
        //
    }
};

What is "&&" stand for (i've already know & is taking the address) and what does HLD(dsk &&ke):ke(ke), par(n+1) do ?

Aucun commentaire:

Enregistrer un commentaire