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

Go to the source code of this file.

Data Structures

struct  struct_t
 
class  class_t
 
union  union_t
 
union  empty_union
 
struct  empty_t
 
struct  non_empty_t
 
struct  polymorphic_t
 
struct  non_polymorphic_t
 
struct  abstract_t
 
struct  member_t< T >
 
struct  public_derived_t< T >
 
struct  public_derived_with_member< T, U >
 
struct  protected_derived_t< T >
 
struct  private_derived_t< T >
 
struct  access_controlled_t
 
struct  special_case_t< T >
 
struct  virtual_derived_t< T >
 
struct  no_trivial_ctor_t
 
struct  no_trivial_copy_t
 
struct  no_trivial_assign_t
 
struct  no_trivial_dtor_t
 
struct  throwing_assign_t
 
struct  throwing_ctor_t
 
struct  throwing_copy_t
 

Macros

#define _TEST(Trait, Type, Expect)    test_trait (__LINE__, Trait< Type >::value, Expect, #Trait, #Type)
 
#define TEST(Trait, Type, Expect)    _TEST (Trait, Type, Expect)
 
#define C   const
 
#define V   volatile
 
#define CV   const volatile
 
#define TEST(Trait, Type, Expect)
 
#define TEST(Trait, Type)
 
#define TEST(Trait, Type, Expect)    test_trait (__LINE__, #Trait, #Type, Trait<Type>::value, Expect)
 
#define TEST(Trait, Type, Depth, Expect)
 

Typedefs

typedef void cfun_t()
 

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_trait (int line, const char *trait, const char *type, size_t value, size_t expect)
 
void test_trait (int line, size_t depth, size_t value, size_t expect, const char *trait, const char *type)
 
void test_is_const ()
 
void test_is_volatile ()
 
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 238 of file 20.meta.unary.prop.cpp.

◆ C

#define C   const

Definition at line 246 of file 20.meta.unary.prop.cpp.

◆ CV

#define CV   const volatile

Definition at line 248 of file 20.meta.unary.prop.cpp.

◆ TEST [1/5]

#define TEST (   Trait,
  Type 
)
Value:
test_trait (__LINE__, #Trait, #Type, \
Trait<Type>::value, _RWSTD_TT_ALIGN_OF(Type))
void test_trait(int line, bool value, bool expect, const char *trait, const char *type)

Definition at line 241 of file 20.meta.unary.prop.cpp.

◆ TEST [2/5]

#define TEST (   Trait,
  Type,
  Depth,
  Expect 
)
Value:
test_trait (__LINE__, Depth, Trait<Type,Depth>::value, Expect, \
#Trait, #Type)

Definition at line 241 of file 20.meta.unary.prop.cpp.

◆ TEST [3/5]

#define TEST (   Trait,
  Type,
  Expect 
)     _TEST (Trait, Type, Expect)

Definition at line 241 of file 20.meta.unary.prop.cpp.

◆ TEST [4/5]

#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 241 of file 20.meta.unary.prop.cpp.

◆ TEST [5/5]

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

Definition at line 241 of file 20.meta.unary.prop.cpp.

◆ V

#define V   volatile

Definition at line 247 of file 20.meta.unary.prop.cpp.

Typedef Documentation

◆ cfun_t

typedef void cfun_t()

20.meta.unary.prop.cpp - test exercising meta.unary.prop

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1999-2008 Rogue Wave Software, Inc.

Definition at line 43 of file 20.meta.unary.prop.cpp.

Enumeration Type Documentation

◆ enum_t

enum enum_t
Enumerator
E_a 
E_b 
E_c 

Definition at line 63 of file 20.meta.unary.prop.cpp.

Function Documentation

◆ main()

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

Definition at line 1139 of file 20.meta.unary.prop.cpp.

◆ test_is_const()

void test_is_const ( )

Definition at line 252 of file 20.meta.unary.prop.cpp.

◆ test_is_volatile()

void test_is_volatile ( )

Definition at line 322 of file 20.meta.unary.prop.cpp.

◆ test_trait() [1/3]

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

Definition at line 211 of file 20.meta.unary.prop.cpp.

◆ test_trait() [2/3]

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

Definition at line 219 of file 20.meta.unary.prop.cpp.

◆ test_trait() [3/3]

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

Definition at line 228 of file 20.meta.unary.prop.cpp.