4 ms·
thanks, didn't notice the declaration - this way they can deduce the type without having to specify the template parameter directly in the call - and you don't
by MichaelMoser123 8y ago
thanks, didn't notice the declaration - this way they can deduce the type without having to specify the template parameter directly in the call - and you don't have to pass an actual instance; clever. You never stop
learning with c++
template<class T>
void foo(T &&);