samedi 18 juillet 2020

typename keyword other usage [duplicate]

In the article about traits thre is a following code snippet

template <typename T>
typename remove_reference<T>::type&& move(T&& arg)
{
  return static_cast<typename remove_reference<T>::type&&>(arg);
}

Can please somebody explain the usage of typename (except , it's clear)?

Aucun commentaire:

Enregistrer un commentaire