1 .. Metafunctions/Miscellaneous//min |80
17 typedef |unspecified| type;
25 Returns the smaller of its two arguments.
33 #include <boost/mpl/min_max.hpp>
45 +---------------+-------------------+-------------------------------------------+
46 | Parameter | Requirement | Description |
47 +===============+===================+===========================================+
48 | ``N1``, ``N2``| Any type | Types to compare. |
49 +---------------+-------------------+-------------------------------------------+
55 For arbitrary types ``x`` and ``y``:
60 typedef min<x,y>::type r;
67 ``less<x,y>::value`` is a well-formed integral constant expression.
74 typedef if_< less<x,y>,x,y >::type r;
90 vector_c<int,1,7,0,-2,5,-1>
95 BOOST_MPL_ASSERT(( is_same< r, int_<-10> > ));
101 |Metafunctions|, |Comparison|, |max|, |less|, |min_element|
104 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
105 Distributed under the Boost Software License, Version 1.0. (See accompanying
106 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)