更新时间:2023-11-11 23:14:10
使用 numeric_limits
,结束。
编辑:好的,根据詹姆斯的评论,不是结束。 - 异常是模板和案例标签。但是,我看不到有一个case标签为min或max,或者一个模板的用途,但我想我没有看到所有的可能性...
Okay, per the comment by James, not "end of." - exceptions are templates and case labels. But, I cannot see a use for having a case label for either min or max, or a template for them, but I guess I've not seen all possibilities...
我想我的观点是 numeric_limits
模板在 max()
和 min()
...
I guess my point is that the numeric_limits
template is more useful beyond max()
and min()
...