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

取模固定值变换器。 More...

#include <gen.h>

Public Member Functions

template<class U>
auto operator() (U x) const -> decltype(x % value)
 对输入值取模固定值。

Public Attributes

T value

Detailed Description

template<class T>
struct console::ops::Mod< T >

取模固定值变换器。

Template Parameters
T固定值类型。

Member Function Documentation

◆ operator()()

template<class T>
template<class U>
auto console::ops::Mod< T >::operator() ( U x) const -> decltype(x % value)
inline

对输入值取模固定值。

Parameters
x输入值。
Returns
x % value。

Member Data Documentation

◆ value

template<class T>
T console::ops::Mod< T >::value

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