#include <rw_driver.h>
#include <rw/_defs.h>
#include <type_traits>
#include <stddef.h>
Go to the source code of this file.
|
| template<class T > |
| int | test_cv_qual (T &) |
| |
| template<class T > |
| int | test_cv_qual (const T &) |
| |
| template<class T > |
| int | test_cv_qual (volatile T &) |
| |
| template<class T > |
| int | test_cv_qual (const volatile T &) |
| |
| const char * | get_type_name (const volatile void *) |
| |
| void | test_trait (int line, bool same, const char *trait, const char *typeT, const char *typeU, const char *typeV) |
| |
| void | test_sign_and_cv (int line, const char *trait_name, const char *type_name, size_t got_size, size_t exp_size, bool got_sign, bool exp_sign, bool got_c, bool exp_c, bool got_v, bool exp_v) |
| |
| int | main (int argc, char *argv[]) |
| |
◆ _RETURN_TYPE_NAME
◆ _RETURN_TYPE_NAME_CV
| #define _RETURN_TYPE_NAME_CV |
( |
|
T | ) |
|
Value:
_RETURN_TYPE_NAME(
const T) \
_RETURN_TYPE_NAME(
volatile T) \
_RETURN_TYPE_NAME(
const volatile T)
Definition at line 92 of file 20.meta.trans.sign.cpp.
◆ _TEST
| #define _TEST |
( |
|
Trait, |
|
|
|
TypeT, |
|
|
|
TypeU |
|
) |
| |
◆ _TEST_SIGN_AND_CV
| #define _TEST_SIGN_AND_CV |
( |
|
Trait, |
|
|
|
Type, |
|
|
|
Signed |
|
) |
| |
Value:
sizeof (Trait<Type>::type), \
std::is_signed<Trait<Type>::type>
::value, \
Signed, \
std::is_const<Trait<Type>::type>
::value, \
std::is_const<Type>::value, \
std::is_volatile<Trait<Type>::type>
::value, \
std::is_volatile<Type>::value)
Definition at line 173 of file 20.meta.trans.sign.cpp.
◆ TEST
| #define TEST |
( |
|
Trait, |
|
|
|
TypeT, |
|
|
|
TypeU |
|
) |
| |
Value: _TEST(Trait, TypeT, TypeU); \
_TEST(Trait, const TypeT, const TypeU); \
_TEST(Trait, volatile TypeT, volatile TypeU); \
_TEST(Trait, const volatile TypeT, const volatile TypeU)
Definition at line 138 of file 20.meta.trans.sign.cpp.
◆ TEST_MAKE_SIGNED
| #define TEST_MAKE_SIGNED |
( |
|
Type | ) |
|
Value:
_TEST_SIGN_AND_CV (std::make_signed,
const Type,
true); \
_TEST_SIGN_AND_CV (std::make_signed,
volatile Type,
true); \
_TEST_SIGN_AND_CV (std::make_signed,
const volatile Type,
true)
Definition at line 184 of file 20.meta.trans.sign.cpp.
◆ TEST_MAKE_UNSIGNED
| #define TEST_MAKE_UNSIGNED |
( |
|
Type | ) |
|
Value:
_TEST_SIGN_AND_CV (std::make_unsigned,
const Type,
false); \
_TEST_SIGN_AND_CV (std::make_unsigned,
volatile Type,
false); \
_TEST_SIGN_AND_CV (std::make_unsigned,
const volatile Type,
false)
Definition at line 190 of file 20.meta.trans.sign.cpp.
◆ enum_LS
◆ enum_LU
◆ enum_MS
◆ enum_MU
◆ enum_SS
◆ enum_SU
◆ get_type_name()
| const char * get_type_name |
( |
const volatile void * |
| ) |
|
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ test_cv_qual() [1/4]
| int test_cv_qual |
( |
const T & |
| ) |
|
◆ test_cv_qual() [2/4]
| int test_cv_qual |
( |
const volatile T & |
| ) |
|
◆ test_cv_qual() [3/4]
◆ test_cv_qual() [4/4]
| int test_cv_qual |
( |
volatile T & |
| ) |
|
◆ test_sign_and_cv()
| void test_sign_and_cv |
( |
int |
line, |
|
|
const char * |
trait_name, |
|
|
const char * |
type_name, |
|
|
size_t |
got_size, |
|
|
size_t |
exp_size, |
|
|
bool |
got_sign, |
|
|
bool |
exp_sign, |
|
|
bool |
got_c, |
|
|
bool |
exp_c, |
|
|
bool |
got_v, |
|
|
bool |
exp_v |
|
) |
| |
◆ test_trait()
| void test_trait |
( |
int |
line, |
|
|
bool |
same, |
|
|
const char * |
trait, |
|
|
const char * |
typeT, |
|
|
const char * |
typeU, |
|
|
const char * |
typeV |
|
) |
| |