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

#include <gextra.h>

Public Member Functions

 scan_t (const T &init, BinaryOp op)
 构造函数。

Private Attributes

T state
BinaryOp op

Friends

template<class Gen>
Scan< Gen, T, BinaryOp > operator| (Gen gen, scan_t< T, BinaryOp > scan)
 将扫描适配器应用到生成器。

Constructor & Destructor Documentation

◆ scan_t()

template<class T, class BinaryOp>
console::gen::scan_t< T, BinaryOp >::scan_t ( const T & init,
BinaryOp op )
inline

构造函数。

Parameters
init初始值。
op二元操作符。

◆ operator|

template<class T, class BinaryOp>
template<class Gen>
Scan< Gen, T, BinaryOp > operator| ( Gen gen,
scan_t< T, BinaryOp > scan )
friend

将扫描适配器应用到生成器。

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

Member Data Documentation

◆ op

template<class T, class BinaryOp>
BinaryOp console::gen::scan_t< T, BinaryOp >::op
private

◆ state

template<class T, class BinaryOp>
T console::gen::scan_t< T, BinaryOp >::state
private

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