vec_assign2.hpp 1.2 KB

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