Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Enumerations | Functions
20.meta.unary.comp.cpp File Reference
#include <rw_driver.h>
#include <rw/_defs.h>
#include <type_traits>
Include dependency graph for 20.meta.unary.comp.cpp:

Go to the source code of this file.

Data Structures

class  class_t
 
struct  struct_t
 
union  union_t
 

Macros

#define _TEST(Trait, Type, Expect)    test_trait (__LINE__, Trait<Type>::value, Expect, #Trait, #Type)
 
#define TEST(Trait, Type, Expect)
 

Enumerations

enum  enum_t { E_a , E_b , E_c }
 

Functions

void test_trait (int line, bool value, bool expect, const char *trait, const char *type)
 
void test_is_arithmetic ()
 
void test_is_fundamental ()
 
void test_is_object ()
 
void test_is_scalar ()
 
void test_is_compound ()
 
void test_is_member_pointer ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ _TEST

#define _TEST (   Trait,
  Type,
  Expect 
)     test_trait (__LINE__, Trait<Type>::value, Expect, #Trait, #Type)

Definition at line 66 of file 20.meta.unary.comp.cpp.

◆ TEST

#define TEST (   Trait,
  Type,
  Expect 
)
Value:
_TEST(Trait, Type, Expect); \
_TEST(Trait, std::add_const<Type>::type, Expect); \
_TEST(Trait, std::add_volatile<Type>::type, Expect); \
_TEST(Trait, std::add_cv<Type>::type, Expect)
#define _TEST(Trait, Type, Expect)

Definition at line 69 of file 20.meta.unary.comp.cpp.

Enumeration Type Documentation

◆ enum_t

enum enum_t
Enumerator
E_a 
E_b 
E_c 

Definition at line 52 of file 20.meta.unary.comp.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 686 of file 20.meta.unary.comp.cpp.

◆ test_is_arithmetic()

void test_is_arithmetic ( )

Definition at line 77 of file 20.meta.unary.comp.cpp.

◆ test_is_compound()

void test_is_compound ( )

Definition at line 456 of file 20.meta.unary.comp.cpp.

◆ test_is_fundamental()

void test_is_fundamental ( )

Definition at line 170 of file 20.meta.unary.comp.cpp.

◆ test_is_member_pointer()

void test_is_member_pointer ( )

Definition at line 562 of file 20.meta.unary.comp.cpp.

◆ test_is_object()

void test_is_object ( )

Definition at line 263 of file 20.meta.unary.comp.cpp.

◆ test_is_scalar()

void test_is_scalar ( )

Definition at line 359 of file 20.meta.unary.comp.cpp.

◆ test_trait()

void test_trait ( int  line,
bool  value,
bool  expect,
const char *  trait,
const char *  type 
)

Definition at line 58 of file 20.meta.unary.comp.cpp.