16 for (c = 0; u8 != u8_old; c++) {
32 for (c = 0; u16 != u16_old; c++) {
48 for (c = 0; u32 != u32_old; c++) {
64 for (c = 0; u64 != u64_old; c++) {
84 unsigned long long ull;
271 assert(static_cast<std::string>(
type_name(sc)) ==
"char");
272 assert(static_cast<std::string>(
type_name(uc)) ==
"unsigned char");
273 assert(static_cast<std::string>(
type_name(ss)) ==
"short");
274 assert(static_cast<std::string>(
type_name(us)) ==
"unsigned short");
275 assert(static_cast<std::string>(
type_name(si)) ==
"int");
276 assert(static_cast<std::string>(
type_name(ui)) ==
"unsigned int");
277 assert(static_cast<std::string>(
type_name(sl)) ==
"long");
278 assert(static_cast<std::string>(
type_name(ul)) ==
"unsigned long");
279 assert(static_cast<std::string>(
type_name(sll)) ==
"long long");
280 assert(static_cast<std::string>(
type_name(ull)) ==
"unsigned long long");
281 assert(static_cast<std::string>(
type_name(f)) ==
"float");
282 assert(static_cast<std::string>(
type_name(d)) ==
"double");
283 assert(static_cast<std::string>(
type_name(b)) ==
"bool");
286 int main(
int argc,
char const * argv[])
Basic types definitions and templates.
int main(int argc, char const *argv[])
bool is_signed_short(const short &a_arg)
Return true for any variable that is either a signed or unsigned char.
bool is_float(const float &a_arg)
Return true for any variable that is either a signed or unsigned long long.
const char * type_name(const unsigned char &a_arg)
Return true for any variable that is a signed type.
bool is_unsigned_long_long(const unsigned long long &a_arg)
Return false for any variable that is not an unsigned long long.
bool is_bool(const bool &a_arg)
Return false for any variable that is not a bool.
bool is_unsigned_int(const unsigned int &a_arg)
Return false for any variable that is not an unsigned int.
bool is_signed_char(const char &a_arg)
Return false for any variable that is not a char.
bool is_signed_long(const long &a_arg)
Return true for any variable that is either a signed or unsigned int.
bool is_unsigned_short(const unsigned short &a_arg)
Return false for any variable that is not an unsigned short.
bool is_signed_int(const int &a_arg)
Return true for any variable that is either a signed or unsigned short.
bool is_signed_long_long(const long long &a_arg)
Return true for any variable that is either a signed or unsigned long.
bool is_double(const double &a_arg)
Return false for any variable that is not a double.
bool is_unsigned_char(const unsigned char &a_arg)
Return false for any variable that is not an unsigned char.
bool is_unsigned_long(const unsigned long &a_arg)
Return false for any variable that is not an unsigned long.