VIPRA Documentation
Loading...
Searching...
No Matches
VIPRA::Util::invoke_result_or< result_t, func_t, arg_ts > Struct Template Reference

Utility class for getting the result of a function or a default type if the function returns void. More...

#include <invoke_result_or.hpp>

Public Types

using type
 

Detailed Description

template<typename result_t, typename func_t, typename... arg_ts>
struct VIPRA::Util::invoke_result_or< result_t, func_t, arg_ts >

Utility class for getting the result of a function or a default type if the function returns void.

Template Parameters
result_t
func_t
arg_ts

Member Typedef Documentation

◆ type

template<typename result_t, typename func_t, typename... arg_ts>
using VIPRA::Util::invoke_result_or< result_t, func_t, arg_ts >::type
Initial value:
typename std::conditional<std::is_same_v<func_t, VOID>, result_t,
std::invoke_result_t<func_t, arg_ts...>>::type

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