iox::cxx::is_invocable🔗
Verifies whether the passed Callable type is in fact invocable with the given arguments. More...
#include <type_traits.hpp>
Public Functions🔗
Name | |
---|---|
template \<typename C ,typename... As> constexpr std::true_type |
test(typename std::result_of< C(As...)>::type * ) |
template \<typename C ,typename... As> constexpr std::false_type |
test(... ) |
Public Attributes🔗
Name | |
---|---|
constexpr bool | value |
Detailed Description🔗
template <typename Callable ,
typename... ArgTypes>
struct iox::cxx::is_invocable;
Verifies whether the passed Callable type is in fact invocable with the given arguments.
Public Functions Documentation🔗
function test🔗
template <typename C ,
typename... As>
static inline constexpr std::true_type test(
typename std::result_of< C(As...)>::type *
)
Note: result_of is deprecated, switch to invoke_result in C++17
function test🔗
template <typename C ,
typename... As>
static inline constexpr std::false_type test(
...
)
Public Attributes Documentation🔗
variable value🔗
static constexpr bool value = decltype([test](/v1.0.3/API-reference/utils/Classes/structiox_1_1cxx_1_1is__invocable/#function-test)<Callable, ArgTypes...>(nullptr))::value;
Updated on 31 May 2022 at 15:29:15 CEST