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