Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::Call< Args > Struct Template Reference

函数调用变化器。 More...

#include <gextra.h>

Public Member Functions

 Call (const Args &...args)
 构造函数。
template<class F>
auto operator() (F &&f) const -> typename std::decay< decltype(param.apply(std::forward< F >(f)))>::type
 调用函数。

Public Attributes

Params< Args... > param
 参数包

Detailed Description

template<class... Args>
struct console::ops::Call< Args >

函数调用变化器。

Template Parameters
Args函数参数类型。

Constructor & Destructor Documentation

◆ Call()

template<class... Args>
console::ops::Call< Args >::Call ( const Args &... args)
inline

构造函数。

Parameters
args函数参数。

Member Function Documentation

◆ operator()()

template<class... Args>
template<class F>
auto console::ops::Call< Args >::operator() ( F && f) const -> typename std::decay< decltype(param.apply( std::forward< F >(f)))>::type
inline

调用函数。

Parameters
f函数对象。
Returns
函数返回值。

Member Data Documentation

◆ param

template<class... Args>
Params<Args...> console::ops::Call< Args >::param

参数包


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