lundi 25 mai 2020

What is the meaning of "type* = nullptr"

I don't undestand.

template<class T>
T foo2(T t, typename std::enable_if<std::is_integral<T>::value >::type* = nullptr) 
{
    return t;
}

type* = 0? What is this.

Aucun commentaire:

Enregistrer un commentaire