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

Go to the source code of this file.

Data Structures

struct  test_is_same< T, U >
 
struct  test_is_same< T, T >
 

Macros

#define TEST_INTEGRAL_CONSTANT(Type, Value)    test_integral_constant<Type, Value>(#Type,#Value)
 
#define TEST_REQUIRED_TYPE(Type, Value)    test_required_type<Type, Value>(#Type, #Value);
 

Enumerations

enum  enum_t { E_a , E_b , E_c }
 

Functions

template<class T , class U >
bool test_is_same_type (T, U)
 
template<class T >
bool test_is_same_type (T, T)
 
template<class T >
bool test_is_const (T &)
 
template<class T >
bool test_is_const (const T &)
 
template<typename Type , Type Value>
void test_integral_constant (const char *name, const char *value)
 
template<typename Type , bool Value>
void test_required_type (const char *name, const char *value)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ TEST_INTEGRAL_CONSTANT

#define TEST_INTEGRAL_CONSTANT (   Type,
  Value 
)     test_integral_constant<Type, Value>(#Type,#Value)

◆ TEST_REQUIRED_TYPE

#define TEST_REQUIRED_TYPE (   Type,
  Value 
)     test_required_type<Type, Value>(#Type, #Value);

Enumeration Type Documentation

◆ enum_t

enum enum_t
Enumerator
E_a 
E_b 
E_c 

Definition at line 76 of file 20.meta.help.cpp.

Function Documentation

◆ main()

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

Definition at line 250 of file 20.meta.help.cpp.

◆ test_integral_constant()

template<typename Type , Type Value>
void test_integral_constant ( const char *  name,
const char *  value 
)

Definition at line 83 of file 20.meta.help.cpp.

◆ test_is_const() [1/2]

template<class T >
bool test_is_const ( const T &  )

Definition at line 59 of file 20.meta.help.cpp.

◆ test_is_const() [2/2]

template<class T >
bool test_is_const ( T &  )

Definition at line 53 of file 20.meta.help.cpp.

◆ test_is_same_type() [1/2]

template<class T >
bool test_is_same_type ( T  ,
T   
)

Definition at line 47 of file 20.meta.help.cpp.

◆ test_is_same_type() [2/2]

template<class T , class U >
bool test_is_same_type ( T  ,
U   
)

20.meta.help.cpp - test exercising meta.help

$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 2008 Rogue Wave Software, Inc.

Definition at line 41 of file 20.meta.help.cpp.

◆ test_required_type()

template<typename Type , bool Value>
void test_required_type ( const char *  name,
const char *  value 
)

Definition at line 123 of file 20.meta.help.cpp.