vec_assign3.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_2D7E8392C53CBC9121E33749ECF4D5
  5. #define BOOST_QVM_2D7E8392C53CBC9121E33749ECF4D5
  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==3 && vec_traits<B>::dim==3,
  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. return a;
  27. }
  28. namespace
  29. sfinae
  30. {
  31. using ::boost::qvm::assign;
  32. }
  33. namespace
  34. qvm_detail
  35. {
  36. template <int D>
  37. struct assign_vv_defined;
  38. template <>
  39. struct
  40. assign_vv_defined<3>
  41. {
  42. static bool const value=true;
  43. };
  44. }
  45. }
  46. }
  47. #endif