join.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Copyright (c) 2006 Dan Marsden
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #if !defined(FUSION_JOIN_200601222109)
  8. #define FUSION_JOIN_200601222109
  9. #include <boost/fusion/support/config.hpp>
  10. #include <boost/fusion/view/joint_view.hpp>
  11. namespace boost { namespace fusion {
  12. namespace result_of
  13. {
  14. template<typename LhSequence, typename RhSequence>
  15. struct join
  16. {
  17. typedef joint_view<LhSequence, RhSequence> type;
  18. };
  19. }
  20. template<typename LhSequence, typename RhSequence>
  21. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  22. inline typename result_of::join<LhSequence const, RhSequence const>::type
  23. join(LhSequence const& lhs, RhSequence const& rhs)
  24. {
  25. return typename result_of::join<LhSequence const, RhSequence const>::type(
  26. lhs, rhs);
  27. }
  28. }}
  29. #endif