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

四舍五入变换器。 More...

#include <gextra.h>

Public Member Functions

template<class T>
auto operator() (T x) const -> decltype(std::round(x))
 对输入值进行四舍五入。

Detailed Description

四舍五入变换器。

Member Function Documentation

◆ operator()()

template<class T>
auto console::ops::round_t::operator() ( T x) const -> decltype(std::round(x))
inline

对输入值进行四舍五入。

Parameters
x输入值。
Returns
std::round(x)。

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