|
Console Library 8.0.0
A header-only library that makes C++ simple
|
限幅变换器。 More...
#include <gextra.h>
Public Member Functions | |
| T | operator() (T x) const |
| 将输入值限制在 [low, high] 范围内。 | |
Public Attributes | |
| T | low |
| T | high |
限幅变换器。
| T | 元素类型。 |
|
inline |
将输入值限制在 [low, high] 范围内。
| x | 输入值。 |
| T console::ops::Clamp< T >::high |
| T console::ops::Clamp< T >::low |