dimanche 1 avril 2018

How to declare a function accept to arbitrary length of array of rvalue

Suppose I have a function like this:

void MyFun(MyClass* p){

}

Where p is actually an unknown length array. How can I overloaded it to accept an array of rvalue MyClass.

Aucun commentaire:

Enregistrer un commentaire