Skip to content

iox::cxx::is_invocable🔗

Verifies whether the passed Callable type is in fact invocable with the given arguments. More...

#include <iceoryx_hoofs/cxx/type_traits.hpp>

Public Functions🔗

Name
template <typename C ,typename... As>
constexpr std::true_type
test(typename cxx::invoke_result< 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 cxx::invoke_result< 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](/v2.0.5/API-reference/hoofs/Classes/structiox_1_1cxx_1_1is__invocable/#function-test)<Callable, ArgTypes...>(nullptr))::value;

Updated on 18 December 2023 at 13:11:42 CET