Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::even_t Struct Reference

偶数谓词。 More...

#include <gen.h>

Public Member Functions

template<class T>
bool operator() (T x) const
 判断输入值是否为偶数。

Detailed Description

偶数谓词。

Member Function Documentation

◆ operator()()

template<class T>
bool console::ops::even_t::operator() ( T x) const
inline

判断输入值是否为偶数。

Parameters
x输入值。
Returns
x % 2 == 0。

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