C/C++ User's Journal STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - where the Standard Template Library meets the Active Template Library COMSTL - where the Standard Template Library meets the Component Object Model
Synesis Software InetSTL - where the Standard Template Library meets the Internet UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/include/recls_minmax.h File Reference

min() / max() for the recls API More...

#include "recls.h"
#include <stddef.h>

Go to the source code of this file.

Namespaces

namespace  recls

Defines

#define recls_max(v1, v2)   (((v2) < (v1)) ? (v1) : (v2))
#define recls_min(v1, v2)   (((v1) < (v2)) ? (v1) : (v2))
 Returns the smaller of two values.


Detailed Description

min() / max() for the recls API


Define Documentation

#define recls_max v1,
v2       (((v2) < (v1)) ? (v1) : (v2))
 

#define recls_min v1,
v2       (((v1) < (v2)) ? (v1) : (v2))
 

Returns the smaller of two values.

Parameters:
v1  The first of the two values
v2  The first of the two values
Note:
This is a template function in C++, and is within the recls namespace

recls Library documentation Synesis Software Pty Ltd, 2001-2005