vec_assign3.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef BOOST_QVM_GEN_VEC_ASSIGN3_HPP_INCLUDED
  2. #define BOOST_QVM_GEN_VEC_ASSIGN3_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==3 && vec_traits<B>::dim==3,
  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. return a;
  22. }
  23. namespace
  24. sfinae
  25. {
  26. using ::boost::qvm::assign;
  27. }
  28. namespace
  29. qvm_detail
  30. {
  31. template <int D>
  32. struct assign_vv_defined;
  33. template <>
  34. struct
  35. assign_vv_defined<3>
  36. {
  37. static bool const value=true;
  38. };
  39. }
  40. } }
  41. #endif