Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::gen::Pipeline< Op > Class Template Reference

单适配器管道特化。 More...

#include <gextra.h>

Public Member Functions

 Pipeline (Op o)
 构造函数。
template<class Gen>
auto operator() (Gen gen) const -> decltype(gen|op)
 将管道应用到生成器。

Private Attributes

Op op
 存储的适配器对象。

Detailed Description

template<class Op>
class console::gen::Pipeline< Op >

单适配器管道特化。

Template Parameters
Op适配器类型。

Constructor & Destructor Documentation

◆ Pipeline()

template<class Op>
console::gen::Pipeline< Op >::Pipeline ( Op o)
inline

构造函数。

Parameters
o适配器对象。

Member Function Documentation

◆ operator()()

template<class Op>
template<class Gen>
auto console::gen::Pipeline< Op >::operator() ( Gen gen) const -> decltype(gen|op)
inline

将管道应用到生成器。

Template Parameters
Gen源生成器类型。
Parameters
gen源生成器。
Returns
应用适配器后的生成器。

Member Data Documentation

◆ op

template<class Op>
Op console::gen::Pipeline< Op >::op
private

存储的适配器对象。


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