#include <rw_driver.h>
#include <tuple>
#include "20.tuple.h"
#include <rw/_meta_rel.h>
#include <rw_any.h>
Go to the source code of this file.
|
| #define | STRING(x) #x |
| |
| #define | TEST(T, S) |
| |
| #define | TUPLE std::tuple<long, const char*> |
| |
| #define | TUPLE std::tuple<bool, char, int, double, void*, UserDefined> |
| |
| #define | IS_SAME(T, U) _RW::__rw_is_same<T, U>::value |
| |
| #define | TYPE_NAME(T) (any_t (T ())).type_name () |
| |
| #define | TEST(N, T, E) |
| |
| #define | TUPLE std::tuple<long, const char*> |
| |
| #define | TUPLE std::tuple<bool, char, int, double, void*, UserDefined> |
| |
|
| int | main (int argc, char *argv[]) |
| |
◆ IS_SAME
| #define IS_SAME |
( |
|
T, |
|
|
|
U |
|
) |
| _RW::__rw_is_same<T, U>::value |
◆ STRING
◆ TEST [1/2]
Value:{ \
typedef std::tuple_element<N, T>::type elem_type; \
rw_assert (
IS_SAME(elem_type,
E), __FILE__, __LINE__, \
"tuple_element<0, " #
T ">::type, got type \"%s\", " \
"expected type \"" #
E "\"",
TYPE_NAME (elem_type)); \
}
◆ TEST [2/2]
Value: rw_assert (std::tuple_size<T>::value ==
S, __FILE__, __LINE__, \
"tuple_size<" #
T ">::value, got %d, expected " \
STRING (
S), std::tuple_size<T>::value)
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)
◆ TUPLE [1/4]
| #define TUPLE std::tuple<long, const char*> |
◆ TUPLE [2/4]
◆ TUPLE [3/4]
| #define TUPLE std::tuple<long, const char*> |
◆ TUPLE [4/4]
◆ TYPE_NAME
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |