Typedef rcppsw::mpl::is_detected

Typedef Documentation

typedef typename detail::detector<no_such_trait, void, TFuncDecltype, Args...>::value rcppsw::mpl::is_detected

Type trait to detect whether a function taking the specified Args exists for the specified type. Suitable for use in SFINAE.

Template Parameters:
  • TFuncDecltype – Should be a decltype(), something like decltype(std::declval<T>().foo()) to detect the presence of a function named foo() for a type T.

  • Args – The argument types for the function to detect (if any).