jeudi 16 avril 2020

how to use = operator in threads in cpp and what is the benefit of it? [duplicate]

std::thread([=]{

//my statements and my other stuff, basically here i am updating the database accordingly some conditions.

  }).detach();

So, what is the use, benefit or how to use this : std::thread([=]

Aucun commentaire:

Enregistrer un commentaire