Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:02

0001 #ifndef BOOST_QVM_GEN_VEC_ASSIGN3_HPP_INCLUDED
0002 #define BOOST_QVM_GEN_VEC_ASSIGN3_HPP_INCLUDED
0003 
0004 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
0005 
0006 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0007 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 // This file was generated by a program. Do not edit manually.
0010 
0011 #include <boost/qvm/config.hpp>
0012 #include <boost/qvm/enable_if.hpp>
0013 #include <boost/qvm/vec_traits.hpp>
0014 
0015 namespace boost { namespace qvm {
0016 
0017 template <class A,class B>
0018 BOOST_QVM_CONSTEXPR BOOST_QVM_INLINE_OPERATIONS
0019 typename enable_if_c<
0020     vec_traits<A>::dim==3 && vec_traits<B>::dim==3,
0021     A &>::type
0022 assign( A & a, B const & b )
0023     {
0024     write_vec_element<0>(a,vec_traits<B>::template read_element<0>(b));
0025     write_vec_element<1>(a,vec_traits<B>::template read_element<1>(b));
0026     write_vec_element<2>(a,vec_traits<B>::template read_element<2>(b));
0027     return a;
0028     }
0029 
0030 namespace
0031 sfinae
0032     {
0033     using ::boost::qvm::assign;
0034     }
0035 
0036 namespace
0037 qvm_detail
0038     {
0039     template <int D>
0040     struct assign_vv_defined;
0041 
0042     template <>
0043     struct
0044     assign_vv_defined<3>
0045         {
0046         static bool const value=true;
0047         };
0048     }
0049 
0050 } }
0051 
0052 #endif