Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #ifndef BOOST_QVM_IS_SCALAR_HPP_INCLUDED
0002 #define BOOST_QVM_IS_SCALAR_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 namespace boost { namespace qvm {
0010 
0011 template <class T>
0012 struct
0013 is_scalar
0014     {
0015     static bool const value=false;
0016     };
0017 template <class T>
0018 struct
0019 is_scalar<T const>:
0020     is_scalar<T>
0021     {
0022     };
0023 template <> struct is_scalar<signed char> { static bool const value=true; };
0024 template <> struct is_scalar<unsigned char> { static bool const value=true; };
0025 template <> struct is_scalar<signed short> { static bool const value=true; };
0026 template <> struct is_scalar<unsigned short> { static bool const value=true; };
0027 template <> struct is_scalar<signed int> { static bool const value=true; };
0028 template <> struct is_scalar<unsigned int> { static bool const value=true; };
0029 template <> struct is_scalar<signed long> { static bool const value=true; };
0030 template <> struct is_scalar<unsigned long> { static bool const value=true; };
0031 template <> struct is_scalar<float> { static bool const value=true; };
0032 template <> struct is_scalar<double> { static bool const value=true; };
0033 template <> struct is_scalar<long double> { static bool const value=true; };
0034 } }
0035 
0036 #endif