6void division(std::promise<int>& promise,
int a,
int b)
16 promise.set_value(a/b);
22 promise.set_exception(std::current_exception());
29 std::promise<int> promise;
30 auto future = promise.get_future();
41 catch(
const std::exception& e)
reference_wrapper< Type > ref(Type &val) noexcept
void division(std::promise< int > &promise, int a, int b)
void example_for_promise()
Stream output operators << are implemented.
#define Tpf_ThrowDebugException(debug_message)
Throw a debug_exception with message as argument.