mardi 5 avril 2016

Does 'auto' in C++ recognize custom data types?

I wondered if I make a class of my own, and do this:

class my{
/*some things*/
}myobj;

and then

auto newobj = myobj;

Will auto recognize this myobj? Will it work in case of a structure as well?

Aucun commentaire:

Enregistrer un commentaire