jeudi 3 janvier 2019

c++ std::function declaration

in cppreference, it has two declaration for std::function:

template< class >
class function; /* undefined */    // why it is undefined ?

template< class R, class... Args >
class function<R(Args...)>; 

what is the purpose of <R(Args...)> in the second declaration and why do we need it ?

and why do we need a undefined first declaration ?

Aucun commentaire:

Enregistrer un commentaire