vec_traits.hpp 565 B

12345678910111213141516171819202122232425262728
  1. /// Copyright (c) 2008-2021 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_VEC_TRAITS_HPP_INCLUDED
  5. #define BOOST_QVM_VEC_TRAITS_HPP_INCLUDED
  6. namespace boost { namespace qvm {
  7. template <class V>
  8. struct
  9. vec_traits
  10. {
  11. static int const dim=0;
  12. typedef void scalar_type;
  13. };
  14. template <class T>
  15. struct
  16. is_vec
  17. {
  18. static bool const value=vec_traits<T>::dim>0;
  19. };
  20. } }
  21. #endif