mercredi 18 mars 2020

What is `&` in `function() const &` in c++? [duplicate]

For example:

constexpr T value_or(U&& v) const &

What is & after const?

and sometimes I also see && after const, what is that?

Aucun commentaire:

Enregistrer un commentaire