13[[nodiscard]]
inline auto
20 catch (std::system_error
const& error)
24 catch (std::bad_alloc
const&)
26 return std::make_error_code(std::errc::not_enough_memory);
30 return std::make_error_code(std::errc::state_not_recoverable);
34template <
typename Function>
36try_result(Function&& function) ->
decltype(std::forward<Function>(function)())
40 return std::forward<Function>(function)();
Aggregates multiple thread_registry_backend instances into a single queryable view.
auto current_exception_error_code() noexcept -> std::error_code
auto try_result(Function &&function) -> decltype(std::forward< Function >(function)())
unexpected(E) -> unexpected< E >
Error-returning result type used by the portable ThreadSchedule API.