Verifies whether the passed Callable type is in fact invocable with the given arguments.
More...
#include <iceoryx_hoofs/cxx/type_traits.hpp>
|
template<typename C , typename... As> |
static constexpr std::true_type | test (typename cxx::invoke_result< C, As... >::type *) noexcept |
|
template<typename C , typename... As> |
static constexpr std::false_type | test (...) noexcept |
|
|
static constexpr bool | value = decltype(test<Callable, ArgTypes...>(nullptr))::value |
|
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.
◆ test()
template<typename Callable , typename... ArgTypes>
template<typename C , typename... As>
static constexpr std::true_type iox::cxx::is_invocable< Callable, ArgTypes >::test |
( |
typename cxx::invoke_result< C, As... >::type * |
| ) |
|
|
inlinestaticconstexprnoexcept |
- Note
- result_of is deprecated, switch to invoke_result in C++17
The documentation for this struct was generated from the following file: