iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
iox2::legacy::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 iox2::legacy::invoke_result< C, As... >::type *) 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 Callable, typename... ArgTypes>
struct iox2::legacy::is_invocable< Callable, ArgTypes >

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

Definition at line 62 of file type_traits.hpp.

Member Function Documentation

◆ test() [1/2]

template<typename Callable , typename... ArgTypes>
template<typename C , typename... As>
static constexpr std::false_type iox2::legacy::is_invocable< Callable, ArgTypes >::test (   ...)
inlinestaticconstexprnoexcept

Definition at line 74 of file type_traits.hpp.

◆ test() [2/2]

template<typename Callable , typename... ArgTypes>
template<typename C , typename... As>
static constexpr std::true_type iox2::legacy::is_invocable< Callable, ArgTypes >::test ( typename iox2::legacy::invoke_result< C, As... >::type *  )
inlinestaticconstexprnoexcept

Definition at line 65 of file type_traits.hpp.

Member Data Documentation

◆ value

template<typename Callable , typename... ArgTypes>
constexpr bool iox2::legacy::is_invocable< Callable, ArgTypes >::value { decltype(test<Callable, ArgTypes...>(nullptr))::value }
staticconstexpr

Definition at line 79 of file type_traits.hpp.


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