C++ what are std::shared_future and std::promise

Viewed 6356

I understand what's std::future but i don't understand when and HOW to use std::shared_future and std::promise, and i couldn't find a good explanation online.

I will appreciate some help wrapping my head around it.

By the way the example here isn't really clear http://en.cppreference.com/w/cpp/thread/shared_future

1 Answers
Related