5 ms·
If it captures variables, it is not possible to manually declare the type. You can however hide it in an std::function. But then you probably get some overhead
by dosshell 9mo ago
If it captures variables, it is not possible to manually declare the type. You can however hide it in an std::function. But then you probably get some overhead and some heap allocations in real life.