Closed hongyx11 closed 5 years ago
auto ThreadPool::enqueue(F&& f, Args&&... args) -> std::future<typename std::result_of<F(Args...)>::type>
in Threadpool.h, what does array(->) means? return value?
https://github.com/progschj/ThreadPool/blob/master/ThreadPool.h#L19
Thank you very much
you could find answer here https://stackoverflow.com/questions/22514855/arrow-operator-in-function-heading
Thank you very much.
auto ThreadPool::enqueue(F&& f, Args&&... args) -> std::future<typename std::result_of<F(Args...)>::type>
in Threadpool.h, what does array(->) means? return value?
https://github.com/progschj/ThreadPool/blob/master/ThreadPool.h#L19
Thank you very much