#includeThis example uses the std::future class to retrieve a value of type int. The Future get method is called after starting a new thread using std::async. The program then waits for the value to be delivered and outputs it. The package library used in this example is the C++ Standard Library (STL).#include int main() { std::future futureValue = std::async(std::launch::async, []() { return 42; }); std::cout << "Waiting for the future to deliver the value...\n"; int value = futureValue.get(); std::cout << "The future value is: " << value << std::endl; return 0; }