hpx/functional/protect.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace util

Functions

template<typename T>
std::enable_if_t<hpx::is_bind_expression_v<std::decay_t<T>>, detail::protected_bind<std::decay_t<T>>> protect(T &&f)
template<typename T>
std::enable_if_t<!hpx::is_bind_expression_v<std::decay_t<T>>, T> protect(T &&v)