It's been a while since I read C++ code. There are some syntax that I have no idea what it means and how to search for what it does. Can someone please explain to me what these line of code does? Specifically, I don't understand what happens in [this, 0] { myFunc(); }
class MyClass {
public:
vector<thread> threads;
MyClass() {
threads.emplace_back([this, 0] { myFunc(); });
}
}