Exemplo n.º 1
0
void set_result_helper(future<void> f, T& val, F fun)
{
    fun(val);
    f.consume();
}
Exemplo n.º 2
0
void set_result_helper(future<NT> f, T& val, F fun)
{
    f.consume(fun(val));
}