iceoryx_hoofs 2.0.3
Static Public Member Functions | Static Public Attributes | List of all members
iox::cxx::is_invocable_r< ReturnType, Callable, ArgTypes > Struct Template Reference

Verifies whether the passed Callable type is in fact invocable with the given arguments and the result of the invocation is convertible to ReturnType. More...

#include <iceoryx_hoofs/cxx/type_traits.hpp>

Static Public Member Functions

template<typename C , typename... As>
static constexpr std::true_type test (std::enable_if_t< std::is_convertible< typename cxx::invoke_result< C, As... >::type, ReturnType >::value > *) noexcept
 
template<typename C , typename... As>
static constexpr std::false_type test (...) noexcept
 

Static Public Attributes

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

Detailed Description

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

Verifies whether the passed Callable type is in fact invocable with the given arguments and the result of the invocation is convertible to ReturnType.

Note
This is an implementation of std::is_invokable_r (C++17).

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