multiplies.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef BOOST_MPL_MULTIPLIES_HPP_INCLUDED
  2. #define BOOST_MPL_MULTIPLIES_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/times.hpp>
  14. #include <boost/mpl/aux_/na_spec.hpp>
  15. #include <boost/mpl/aux_/lambda_support.hpp>
  16. #include <boost/mpl/aux_/preprocessor/default_params.hpp>
  17. #include <boost/mpl/aux_/preprocessor/params.hpp>
  18. #include <boost/mpl/aux_/config/ctps.hpp>
  19. // backward compatibility header, deprecated
  20. namespace boost { namespace mpl {
  21. #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
  22. # define AUX778076_OP_ARITY BOOST_MPL_LIMIT_METAFUNCTION_ARITY
  23. #else
  24. # define AUX778076_OP_ARITY 2
  25. #endif
  26. template<
  27. BOOST_MPL_PP_DEFAULT_PARAMS(AUX778076_OP_ARITY, typename N, na)
  28. >
  29. struct multiplies
  30. : times< BOOST_MPL_PP_PARAMS(AUX778076_OP_ARITY, N) >
  31. {
  32. BOOST_MPL_AUX_LAMBDA_SUPPORT(
  33. AUX778076_OP_ARITY
  34. , multiplies
  35. , ( BOOST_MPL_PP_PARAMS(AUX778076_OP_ARITY, N) )
  36. )
  37. };
  38. BOOST_MPL_AUX_NA_SPEC(AUX778076_OP_ARITY, multiplies)
  39. #undef AUX778076_OP_ARITY
  40. }}
  41. #endif // BOOST_MPL_MULTIPLIES_HPP_INCLUDED