vec_assign4.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef BOOST_QVM_GEN_VEC_ASSIGN4_HPP_INCLUDED
  2. #define BOOST_QVM_GEN_VEC_ASSIGN4_HPP_INCLUDED
  3. /// Copyright (c) 2008-2021 Emil Dotchevski and Reverge Studios, Inc.
  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. /// 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 boost { namespace qvm {
  11. template <class A,class B>
  12. BOOST_QVM_INLINE_OPERATIONS
  13. typename enable_if_c<
  14. vec_traits<A>::dim==4 && vec_traits<B>::dim==4,
  15. A &>::type
  16. assign( A & a, B const & b )
  17. {
  18. vec_traits<A>::template write_element<0>(a)=vec_traits<B>::template read_element<0>(b);
  19. vec_traits<A>::template write_element<1>(a)=vec_traits<B>::template read_element<1>(b);
  20. vec_traits<A>::template write_element<2>(a)=vec_traits<B>::template read_element<2>(b);
  21. vec_traits<A>::template write_element<3>(a)=vec_traits<B>::template read_element<3>(b);
  22. return a;
  23. }
  24. namespace
  25. sfinae
  26. {
  27. using ::boost::qvm::assign;
  28. }
  29. namespace
  30. qvm_detail
  31. {
  32. template <int D>
  33. struct assign_vv_defined;
  34. template <>
  35. struct
  36. assign_vv_defined<4>
  37. {
  38. static bool const value=true;
  39. };
  40. }
  41. } }
  42. #endif