folly::invoke_cold

invoke_cold overloads

Synopses

Declared in <folly/lang/Exception.h>

invoke_cold

template<
    typename F,
    typename... A,
    typename FD = std::remove_pointer_t<std::decay_t<F>>,
    typename R = decltype(FOLLY_DECLVAL(F&&)(FOLLY_DECLVAL(A&&)...))>
requires !std::is_function<FD>::value
R
invoke_cold(
    F&& f,
    A&&... a) noexcept(/* see-below */);
» more...

Invoke the provided function pointer or reference with the provided arguments.

template<
    typename F,
    typename... A,
    typename FD = std::remove_pointer_t<std::decay_t<F>>,
    typename R = decltype(FOLLY_DECLVAL(F&&)(FOLLY_DECLVAL(A&&)...))>
requires std::is_function<FD>::value
R
invoke_cold(
    F&& f,
    A&&... a) noexcept(noexcept(f(static_cast<A &&>(a)...)));
» more...

Return Value

The result of invoking the function with the arguments.

Parameters

NameDescription
fThe function to invoke.
aThe arguments to forward to the function.