My Project
is_scalar.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_IS_SCALAR_HPP
29 #define BSL_IS_SCALAR_HPP
30 
31 #include "bool_constant.hpp"
32 #include "is_arithmetic.hpp"
33 #include "is_enum.hpp"
34 #include "is_pointer.hpp"
35 #include "is_member_pointer.hpp"
36 #include "is_null_pointer.hpp"
37 
38 namespace bsl
39 {
51  template<typename T>
52  class is_scalar final :
53  public bool_constant< // --
54  is_arithmetic<T>::value || // --
55  is_enum<T>::value || // --
56  is_pointer<T>::value || // --
57  is_member_pointer<T>::value || // --
58  is_null_pointer<T>::value>
59  {};
60 }
61 
62 #endif
If the provided type is an array type (taking into account const qualifications), provides the member...
Definition: integral_constant.hpp:45
If the provided type is a scalar type, provides the member constant value equal to true....
Definition: is_scalar.hpp:52