Are you asking if there is a min and max defined in C++? If so, the answer is yes.
The stupid header file stdlib.h (and probably the equivalent cstdlib) defines those macros but in all lowercase. This causes conflicts with the STL-provided std::min() and std::max() functions included in the algorithm header file. Soooo, if you include cstdlib or stdlib.h and you want to use the STL functions, #undef the min and max macros after you #include cstdlib or stdlib.h, and before #including algorithm.
Just wondering, Duoas...is there a black book somewhere that Microsoft keeps of all of these little secrets in or is it all scattered throughout the reference. I've worked around the redefinition of min and max since I started C++. :P
Ah.... really? I was under the impression those macros were in cstdlib. I wonder why. Well, since I always program for Windows, I always have Windows.h, so maybe that led to my confusion.
OP: Check this out! #undef the macros, but better yet, do as Duoas explains it. Since I thought the macros belonged to cstdlib, I was recommending the #undef, but Duoas has come to the rescue with the appropriate data.