12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef BOOST_MPL_MIN_MAX_HPP_INCLUDED
- #define BOOST_MPL_MIN_MAX_HPP_INCLUDED
- #include <boost/mpl/less.hpp>
- #include <boost/mpl/if.hpp>
- #include <boost/mpl/aux_/na_spec.hpp>
- namespace boost { namespace mpl {
- template<
- typename BOOST_MPL_AUX_NA_PARAM(N1)
- , typename BOOST_MPL_AUX_NA_PARAM(N2)
- >
- struct min
- : if_< less<N1,N2>,N1,N2 >
- {
- };
- template<
- typename BOOST_MPL_AUX_NA_PARAM(N1)
- , typename BOOST_MPL_AUX_NA_PARAM(N2)
- >
- struct max
- : if_< less<N1,N2>,N2,N1 >
- {
- };
- BOOST_MPL_AUX_NA_SPEC(2, min)
- BOOST_MPL_AUX_NA_SPEC(2, max)
- }}
- #endif
|