1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef BOOST_QVM_IS_SCALAR_HPP_INCLUDED
- #define BOOST_QVM_IS_SCALAR_HPP_INCLUDED
- namespace boost { namespace qvm {
- template <class T>
- struct
- is_scalar
- {
- static bool const value=false;
- };
- template <class T>
- struct
- is_scalar<T const>:
- is_scalar<T>
- {
- };
- template <> struct is_scalar<signed char> { static bool const value=true; };
- template <> struct is_scalar<unsigned char> { static bool const value=true; };
- template <> struct is_scalar<signed short> { static bool const value=true; };
- template <> struct is_scalar<unsigned short> { static bool const value=true; };
- template <> struct is_scalar<signed int> { static bool const value=true; };
- template <> struct is_scalar<unsigned int> { static bool const value=true; };
- template <> struct is_scalar<signed long> { static bool const value=true; };
- template <> struct is_scalar<unsigned long> { static bool const value=true; };
- template <> struct is_scalar<signed long long> { static bool const value=true; };
- template <> struct is_scalar<unsigned long long> { static bool const value=true; };
- template <> struct is_scalar<float> { static bool const value=true; };
- template <> struct is_scalar<double> { static bool const value=true; };
- template <> struct is_scalar<long double> { static bool const value=true; };
- } }
- #endif
|