samedi 6 janvier 2018

If I apply decltype to an expresstion that yields an rvalue, do I always get a pointer? C++

I know that if I apply decltype to p, p bening an int*, decltype(*p) is int&. And decltype(&p) is int**.

A reference being an rvalue, do I always get a pointer when applying decltype to an rvalue?

Aucun commentaire:

Enregistrer un commentaire