c++中min和max函数

包含在c++标准库中头文件<algorithm>中,在头文件<windows.h>中定义了min,max的宏,若在包含<algorithm>的同时包含<windows.h>会致使函数没法使用。ios <windows.h>提供了_cpp_min等函数来代替min函数的功能。c++ C++11标准:<algorithm>中min函数的原型windows default (1) template <c
相关文章
相关标签/搜索