examples/quickstart/simple_future_continuation.cpp
int cont1(hpx::future<int> f)
{
    hpx::cout << "cont1 thread id: " << hpx::this_thread::get_id() << hpx::endl;
    hpx::cout << "Status code (HPX thread): " << f.get() << hpx::endl;
    hpx::cout << hpx::flush;
    return 1;
}
// this continuation function will be executed by an HPX thread
this continuation function will be executed by an HPX thread
this continuation function will be executed by an HPX thread
int cont1(hpx::future<int> f)
{
    hpx::cout << "cont1 thread id: " << hpx::this_thread::get_id() << hpx::endl;
    hpx::cout << "Status code (HPX thread): " << f.get() << hpx::endl;
    hpx::cout << hpx::flush;
    return 1;
}
int cont1 ( hpx :: future < int > f ) { hpx :: cout << " " << hpx :: this_thread :: get_id ( ) << hpx :: endl ; hpx :: cout << " " << f . get ( ) << hpx :: endl ; hpx :: cout << hpx :: flush ; return 1 ; }
this continuation function will be executed by an HPX thread
this continuation function will be executed by an HPX thread