iceoryx_doc  1.0.1
Static Public Member Functions | Static Public Attributes | List of all members
iox::cxx::is_invocable< Callable, ArgTypes > Struct Template Reference

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

#include <type_traits.hpp>

Static Public Member Functions

template<typename C , typename... As>
static constexpr std::true_type test (typename std::result_of< C(As...)>::type *)
 
template<typename C , typename... As>
static constexpr std::false_type test (...)
 

Static Public Attributes

static constexpr bool value = decltype(test<Callable, ArgTypes...>(nullptr))::value
 

Detailed Description

template<typename Callable, typename... ArgTypes>
struct iox::cxx::is_invocable< Callable, ArgTypes >

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

Member Function Documentation

◆ test()

template<typename Callable , typename... ArgTypes>
template<typename C , typename... As>
static constexpr std::true_type iox::cxx::is_invocable< Callable, ArgTypes >::test ( typename std::result_of< C(As...)>::type *  )
inlinestaticconstexpr
Note
result_of is deprecated, switch to invoke_result in C++17

The documentation for this struct was generated from the following file: