#include <memory>
#include <vector>
#include <cstddef>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
#include <rw_new.h>
Go to the source code of this file.
|
| #define | TEST_TYPE(T, vectorT) |
| |
| #define | TEST_REFERENCE(T, vectorT) |
| |
| #define | MEMFUN(result, name, arg_list) |
| |
| #define | FUN(result, name, arg_list) |
| |
| #define | VECTOR(T) std::vector<T, std::allocator<T> > |
| |
| #define | TEST(what, T) |
| |
| #define | VECTOR(T, A) std::vector<T, A<T> > |
| |
| #define | TEST(what, T, A) test_ ##what ((VECTOR (T, A)*)0, (T*)0, A<T>()) |
| |
|
| template<class Vector , class T , class Allocator > |
| void | test_types (Vector *, T *, Allocator) |
| |
| template<class Vector , class T , class Allocator > |
| void | test_signatures (Vector *, T *, Allocator) |
| |
| void | test_ctors () |
| |
| template<class Vector , class T , class Alloc > |
| void | test_ctors (Vector *, T *, Alloc alloc) |
| |
| int | main (int argc, char **argv) |
| |
◆ FUN
Value: do { \
result (*
pf) arg_list = &
name; \
} while (0)
◆ MEMFUN
Value: do { \
} while (0)
std::vector< UserClass, std::allocator< UserClass > > Vector
◆ TEST [1/2]
Value: do { \
\
rwt_check_leaks (0, 0); \
test_ ##what ((
VECTOR (
T)*)0, (
T*)0, std::allocator<T>()); \
\
std::size_t nbytes; \
rw_assert (!nblocks && !nbytes, 0, __LINE__, \
#what " test leaked %lu bytes in %lu blocks", \
nbytes, nblocks); \
} while (0)
_TEST_EXPORT _RWSTD_SIZE_T rwt_check_leaks(_RWSTD_SIZE_T *, const rwt_free_store *)
◆ TEST [2/2]
| #define TEST |
( |
|
what, |
|
|
|
T, |
|
|
|
A |
|
) |
| test_ ##what ((VECTOR (T, A)*)0, (T*)0, A<T>()) |
◆ TEST_REFERENCE
| #define TEST_REFERENCE |
( |
|
T, |
|
|
|
vectorT |
|
) |
| |
Value: { \
typename Vector::value_type
v; \
}
◆ TEST_TYPE
| #define TEST_TYPE |
( |
|
T, |
|
|
|
vectorT |
|
) |
| |
Value: { \
T *
t = (
typename Vector::vectorT*)0; \
}
◆ VECTOR [1/2]
| #define VECTOR |
( |
|
T | ) |
std::vector<T, std::allocator<T> > |
◆ VECTOR [2/2]
| #define VECTOR |
( |
|
T, |
|
|
|
A |
|
) |
| std::vector<T, A<T> > |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ test_ctors() [1/2]
◆ test_ctors() [2/2]
◆ test_signatures()
◆ test_types()