STLdoc
STLdocumentation
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
VS2013
inc
minmax.h
Go to the documentation of this file.
1
/***
2
*minmax.h - familiar min & max macros
3
*
4
* Copyright (c) Microsoft Corporation. All rights reserved.
5
*
6
*Purpose:
7
* Defines min and max macros.
8
*
9
* [Public]
10
*
11
****/
12
13
#pragma once
14
15
#ifndef _INC_MINMAX
16
#define _INC_MINMAX
17
18
#ifndef max
19
#define max(a,b) (((a) > (b)) ? (a) : (b))
20
#endif
/* max */
21
22
#ifndef min
23
#define min(a,b) (((a) < (b)) ? (a) : (b))
24
#endif
/* min */
25
26
#endif
/* _INC_MINMAX */
Generated on Sun Jul 23 2017 09:59:46 for STLdoc by
1.8.8