Why std::thread accepts a functor by forwarding reference
Why does a std::thread object accept the function parameter by forwarding reference and then make a copy of the object with decay_copy? Wouldn't it be easier to just accept the function object by value?
Aucun commentaire:
Enregistrer un commentaire