STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
minmax.h
Go to the documentation of this file.
1 //
2 // minmax.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // Familiar min() and max() macros
7 //
8 #pragma once
9 #define _INC_MINMAX
10 
11 
12 
13 #ifndef max
14  #define max(a ,b) (((a) > (b)) ? (a) : (b))
15 #endif
16 
17 #ifndef min
18  #define min(a, b) (((a) < (b)) ? (a) : (b))
19 #endif