1#ifndef BOOST_QVM_IS_SCALAR_HPP_INCLUDED
2#define BOOST_QVM_IS_SCALAR_HPP_INCLUDED
3
4// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
5
6// Distributed under the Boost Software License, Version 1.0. (See accompanying
7// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9namespace boost { namespace qvm {
10
11template <class T>
12struct
13is_scalar
14 {
15 static bool const value=false;
16 };
17template <class T>
18struct
19is_scalar<T const>:
20 is_scalar<T>
21 {
22 };
23template <> struct is_scalar<signed char> { static bool const value=true; };
24template <> struct is_scalar<unsigned char> { static bool const value=true; };
25template <> struct is_scalar<signed short> { static bool const value=true; };
26template <> struct is_scalar<unsigned short> { static bool const value=true; };
27template <> struct is_scalar<signed int> { static bool const value=true; };
28template <> struct is_scalar<unsigned int> { static bool const value=true; };
29template <> struct is_scalar<signed long> { static bool const value=true; };
30template <> struct is_scalar<unsigned long> { static bool const value=true; };
31template <> struct is_scalar<signed long long> { static bool const value=true; };
32template <> struct is_scalar<unsigned long long> { static bool const value=true; };
33template <> struct is_scalar<float> { static bool const value=true; };
34template <> struct is_scalar<double> { static bool const value=true; };
35template <> struct is_scalar<long double> { static bool const value=true; };
36} }
37
38#endif
39

source code of boost/libs/qvm/include/boost/qvm/is_scalar.hpp