Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:01:39

0001 //  (C) Copyright 2009-2011 Frederic Bron.
0002 //
0003 //  Use, modification and distribution are subject to the Boost Software License,
0004 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt).
0006 //
0007 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
0008 
0009 #ifndef BOOST_TT_HAS_MODULUS_HPP_INCLUDED
0010 #define BOOST_TT_HAS_MODULUS_HPP_INCLUDED
0011 
0012 #define BOOST_TT_TRAIT_NAME has_modulus
0013 #define BOOST_TT_TRAIT_OP %
0014 #define BOOST_TT_FORBIDDEN_IF\
0015    (\
0016       /* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
0017       (\
0018          ::boost::is_fundamental< Lhs_nocv >::value && \
0019          ::boost::is_fundamental< Rhs_nocv >::value && \
0020          (\
0021             (!  ::boost::is_integral< Lhs_noref >::value ) || \
0022             (!  ::boost::is_integral< Rhs_noref >::value )\
0023          )\
0024       )||\
0025       /* Lhs==fundamental and Rhs==pointer */\
0026       (\
0027          ::boost::is_fundamental< Lhs_nocv >::value && \
0028          ::boost::is_pointer< Rhs_noref >::value\
0029       )||\
0030       /* Rhs==fundamental and Lhs==pointer */\
0031       (\
0032          ::boost::is_fundamental< Rhs_nocv >::value && \
0033          ::boost::is_pointer< Lhs_noref >::value\
0034       )||\
0035       /* Lhs==pointer and Rhs==pointer */\
0036       (\
0037          ::boost::is_pointer< Lhs_noref >::value && \
0038          ::boost::is_pointer< Rhs_noref >::value\
0039       )\
0040       )
0041 
0042 
0043 #include <boost/type_traits/detail/has_binary_operator.hpp>
0044 
0045 #undef BOOST_TT_TRAIT_NAME
0046 #undef BOOST_TT_TRAIT_OP
0047 #undef BOOST_TT_FORBIDDEN_IF
0048 
0049 #endif