MPL11
 All Classes Namespaces Files Typedefs Macros Groups Pages
integral_domain.hpp
Go to the documentation of this file.
1 
12 #ifndef BOOST_MPL11_INTEGRAL_DOMAIN_HPP
13 #define BOOST_MPL11_INTEGRAL_DOMAIN_HPP
14 
16 
17 #include <boost/mpl11/bool.hpp>
18 #include <boost/mpl11/core.hpp>
19 
20 
21 namespace boost { namespace mpl11 {
22  template <typename Left, typename Right, typename>
23  struct IntegralDomain : false_ { };
24 
25  template <typename x, typename y>
26  struct div :
27  IntegralDomain<
28  typename datatype<typename x::type>::type,
29  typename datatype<typename y::type>::type
30  >::template div_impl<typename x::type, typename y::type>
31  { };
32 
33  template <typename x, typename y>
34  struct mod :
35  IntegralDomain<
36  typename datatype<typename x::type>::type,
37  typename datatype<typename y::type>::type
38  >::template mod_impl<typename x::type, typename y::type>
39  { };
40 }} // end namespace boost::mpl11
41 
42 #endif // !BOOST_MPL11_INTEGRAL_DOMAIN_HPP
Defines the Core module.
Forward declares the Integral Domain typeclass.
Forwards to boost/mpl11/integer.hpp.