ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::invoke_t< T >::with_return_type_t< Ret_t > 模板结构体 参考

Public 成员函数

template<class... Args>
requires able<Args...>
decltype(auto_as (Args &&...rest) const noexcept(nothrow< Args... >)
 

静态 Public 属性

template<class... Args>
static constexpr bool able = ::std::is_invocable_r_v<Ret_t,T,Args...>
 
template<class... Args>
static constexpr bool nothrow = ::std::is_nothrow_invocable_r_v<Ret_t,T,Args...>
 

详细描述

template<typename T>
template<class Ret_t>
struct elc::defs::base::invoke_t< T >::with_return_type_t< Ret_t >

在文件 all_defs.cpp12555 行定义.

成员函数说明

◆ _as()

template<typename T >
template<class Ret_t >
template<class... Args>
requires able<Args...>
decltype(auto) elc::defs::base::invoke_t< T >::with_return_type_t< Ret_t >::_as ( Args &&...  rest) const
inlinenoexcept

A function that returns a λ that applies a function to a value.

参数
restThe arguments to the function.
返回
A λ that applies the function to a value.

在文件 all_defs.cpp12569 行定义.

12569 {//invoke<T>.with_return_type<Ret_t>._as(...)
12570 return λ_with_catch(rest...)(const T&a)noexcept(nothrow<Args...>){return a(forward<Args>(rest)...);};
12571 }
#define λ_with_catch(...)
Definition all_defs.cpp:627
constexpr T down_cast(U a) noexcept
向下转型至

类成员变量说明

◆ able

template<typename T >
template<class Ret_t >
template<class... Args>
constexpr bool elc::defs::base::invoke_t< T >::with_return_type_t< Ret_t >::able = ::std::is_invocable_r_v<Ret_t,T,Args...>
staticconstexpr

在文件 all_defs.cpp12557 行定义.

◆ nothrow

template<typename T >
template<class Ret_t >
template<class... Args>
constexpr bool elc::defs::base::invoke_t< T >::with_return_type_t< Ret_t >::nothrow = ::std::is_nothrow_invocable_r_v<Ret_t,T,Args...>
staticconstexpr

在文件 all_defs.cpp12559 行定义.


该结构体的文档由以下文件生成: