vec_assign2.hpp 1.4 KB

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