File indexing completed on 2025-09-16 08:49:19
0001 #ifndef BOOST_QVM_IS_SCALAR_HPP_INCLUDED
0002 #define BOOST_QVM_IS_SCALAR_HPP_INCLUDED
0003
0004
0005
0006
0007
0008 namespace boost { namespace qvm {
0009
0010 template <class T>
0011 struct
0012 is_scalar
0013 {
0014 static bool const value=false;
0015 };
0016 template <class T>
0017 struct
0018 is_scalar<T const>:
0019 is_scalar<T>
0020 {
0021 };
0022 template <> struct is_scalar<signed char> { static bool const value=true; };
0023 template <> struct is_scalar<unsigned char> { static bool const value=true; };
0024 template <> struct is_scalar<signed short> { static bool const value=true; };
0025 template <> struct is_scalar<unsigned short> { static bool const value=true; };
0026 template <> struct is_scalar<signed int> { static bool const value=true; };
0027 template <> struct is_scalar<unsigned int> { static bool const value=true; };
0028 template <> struct is_scalar<signed long> { static bool const value=true; };
0029 template <> struct is_scalar<unsigned long> { static bool const value=true; };
0030 template <> struct is_scalar<signed long long> { static bool const value=true; };
0031 template <> struct is_scalar<unsigned long long> { static bool const value=true; };
0032 template <> struct is_scalar<float> { static bool const value=true; };
0033 template <> struct is_scalar<double> { static bool const value=true; };
0034 template <> struct is_scalar<long double> { static bool const value=true; };
0035 } }
0036
0037 #endif