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

跳过元素直到谓词成立适配器(用于管道操作符)。 More...

#include <gextra.h>

Public Member Functions

 drop_until_t (Pred p)
 构造函数。

Private Attributes

Pred pred

Friends

template<class Gen>
DropUntil< Gen, Pred > operator| (Gen g, drop_until_t du)
 管道操作符,创建DropUntil生成器。

Detailed Description

template<class Pred>
class console::gen::drop_until_t< Pred >

跳过元素直到谓词成立适配器(用于管道操作符)。

Template Parameters
Pred谓词类型。

Constructor & Destructor Documentation

◆ drop_until_t()

template<class Pred>
console::gen::drop_until_t< Pred >::drop_until_t ( Pred p)
inlineexplicit

构造函数。

Parameters
p谓词函数。

◆ operator|

template<class Pred>
template<class Gen>
DropUntil< Gen, Pred > operator| ( Gen g,
drop_until_t< Pred > du )
friend

管道操作符,创建DropUntil生成器。

Template Parameters
Gen源生成器类型。
Parameters
g源生成器。
du跳过元素适配器。
Returns
DropUntil<Gen, Pred> 跳过元素生成器。

Member Data Documentation

◆ pred

template<class Pred>
Pred console::gen::drop_until_t< Pred >::pred
private

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