vec_assign4.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //Copyright (c) 2008-2017 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef BOOST_QVM_D49FD4A4597E35CF3222F4CCCFD3902D
  5. #define BOOST_QVM_D49FD4A4597E35CF3222F4CCCFD3902D
  6. //This file was generated by a program. Do not edit manually.
  7. #include <boost/qvm/enable_if.hpp>
  8. #include <boost/qvm/inline.hpp>
  9. #include <boost/qvm/vec_traits.hpp>
  10. namespace
  11. boost
  12. {
  13. namespace
  14. qvm
  15. {
  16. template <class A,class B>
  17. BOOST_QVM_INLINE_OPERATIONS
  18. typename enable_if_c<
  19. vec_traits<A>::dim==4 && vec_traits<B>::dim==4,
  20. A &>::type
  21. assign( A & a, B const & b )
  22. {
  23. vec_traits<A>::template write_element<0>(a)=vec_traits<B>::template read_element<0>(b);
  24. vec_traits<A>::template write_element<1>(a)=vec_traits<B>::template read_element<1>(b);
  25. vec_traits<A>::template write_element<2>(a)=vec_traits<B>::template read_element<2>(b);
  26. vec_traits<A>::template write_element<3>(a)=vec_traits<B>::template read_element<3>(b);
  27. return a;
  28. }
  29. namespace
  30. sfinae
  31. {
  32. using ::boost::qvm::assign;
  33. }
  34. namespace
  35. qvm_detail
  36. {
  37. template <int D>
  38. struct assign_vv_defined;
  39. template <>
  40. struct
  41. assign_vv_defined<4>
  42. {
  43. static bool const value=true;
  44. };
  45. }
  46. }
  47. }
  48. #endif