char_sign.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_CONFIG_CHAR_SIGN_HPP_
13 #define ECL_CONFIG_CHAR_SIGN_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #include <climits>
20 
21 /*****************************************************************************
22 ** Namespaces
23 *****************************************************************************/
24 
25 namespace ecl {
26 
35 inline bool is_char_signed() {
36 
37  return ((CHAR_MIN == SCHAR_MIN) && (CHAR_MAX == SCHAR_MAX));
38 }
39 
40 
41 } // namespace ecl
42 
43 #endif /* ECL_CONFIG_CHAR_SIGN_HPP_ */
bool is_char_signed()
Determines if your platform char type is signed or otherwise.
Definition: char_sign.hpp:35


xbot_node
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:28:13