carb::cpp::is_nothrow_invocable
Defined in carb/cpp/TypeTraits.h
-
template<typename Func, typename ...TArgs>
struct is_nothrow_invocable : public detail::is_nothrow_invocable_impl<void, Func, TArgs...> Check if invoking
Func
with theTArgs
pack will not throw.If
Func
called with the givenTArgs
pack is callable and markednoexcept
, then this structure will derive fromtrue_type
; otherwise, it will befalse_type
. IfFunc
is not callable at all, then this will also befalse_type
.This is equivalent to the C++17
is_nothrow_invocable
meta query.