Compares two numeric data type instances, or two instances of an object which supports an overload of <, and returns the larger one of the two instances. The data type of the arguments and the return value is the same.
template<class T> T XMMax( [in] T a, [in] T b );
Returns the larger of the two input objects.
XMMax is a template and the T type is specified when the template is instantiated.
XMMaxtemplate is new for DirectXMath and is not available for XNAMath 2.x.
XMMaxis available as a macro in XNAMath 2.x.
XMMax. To avoid conflicts with Windows headers with std::max, you need to #define NOMINMAX before you include Windows headers.
Namespace: Use DirectX
Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.