Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:38

0001 // Copyright David Abrahams 2003.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef VALUE_IS_XXX_DWA2003224_HPP
0006 # define VALUE_IS_XXX_DWA2003224_HPP
0007 
0008 # include <boost/config.hpp>
0009 # include <boost/mpl/bool.hpp>
0010 # include <boost/preprocessor/enum_params.hpp>
0011 
0012 # include <boost/python/detail/type_traits.hpp>
0013 #  include <boost/python/detail/is_xxx.hpp>
0014 
0015 namespace boost { namespace python { namespace detail {
0016 
0017 #  define BOOST_PYTHON_VALUE_IS_XXX_DEF(name, qualified_name, nargs)    \
0018 template <class X_>                                                     \
0019 struct value_is_##name                                                  \
0020 {                                                                       \
0021     BOOST_PYTHON_IS_XXX_DEF(name,qualified_name,nargs)                  \
0022     BOOST_STATIC_CONSTANT(bool, value = is_##name<                      \
0023                                typename remove_cv<                      \
0024                                   typename remove_reference<X_>::type   \
0025                                >::type                                  \
0026                            >::value);                                   \
0027     typedef mpl::bool_<value> type;                                     \
0028                                                                         \
0029 };                                                              
0030 
0031 }}} // namespace boost::python::detail
0032 
0033 #endif // VALUE_IS_XXX_DWA2003224_HPP