|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <list>#include <cstddef>#include <rw_lists.h>#include <rw_driver.h>#include <rw_allocator.h>#include <rw_new.h>
Go to the source code of this file.
Data Structures | |
| struct | ListValueType |
Macros | |
| #define | Swap(sig) ListIds::swap_ ## sig |
| #define | TEST(str, arg) |
| #define | TEST(sig) |
Typedefs | |
| typedef std::allocator< ListValueType > | ListAllocator |
| typedef std::list< ListValueType, ListAllocator > | ListType |
Functions | |
| _RWSTD_NAMESPACE (std) | |
| void | test_std_swap () |
| template<class T , class Allocator > | |
| void | test_swap (T *, Allocator &a1, Allocator &a2, const ContainerTestCaseData< T > &tdata) |
| template<class T > | |
| std::allocator< T > | make_alloc (SharedAlloc &, std::allocator< T > *) |
| template<class T , class Types > | |
| UserAlloc< T, Types > | make_alloc (SharedAlloc &shal, UserAlloc< T, Types > *) |
| template<class T , class Allocator > | |
| void | test_swap (T *, Allocator *, const ContainerTestCaseData< T > &tdata) |
| DEFINE_CONTAINER_TEST_FUNCTIONS (test_swap) | |
| int | main (int argc, char **argv) |
| #define Swap | ( | sig | ) | ListIds::swap_ ## sig |
23.list.special.cpp - test exercising [lib.list.special]
$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.
Definition at line 38 of file 23.list.special.cpp.
| #define TEST | ( | sig | ) |
| typedef std::allocator<ListValueType> ListAllocator |
Definition at line 125 of file 23.list.special.cpp.
| typedef std::list<ListValueType, ListAllocator> ListType |
Definition at line 126 of file 23.list.special.cpp.
| _RWSTD_NAMESPACE | ( | std | ) |
Definition at line 130 of file 23.list.special.cpp.
| DEFINE_CONTAINER_TEST_FUNCTIONS | ( | test_swap | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 397 of file 23.list.special.cpp.
| std::allocator< T > make_alloc | ( | SharedAlloc & | , |
| std::allocator< T > * | |||
| ) |
Definition at line 355 of file 23.list.special.cpp.
| UserAlloc< T, Types > make_alloc | ( | SharedAlloc & | shal, |
| UserAlloc< T, Types > * | |||
| ) |
Definition at line 361 of file 23.list.special.cpp.
| void test_std_swap | ( | ) |
Definition at line 145 of file 23.list.special.cpp.
| void test_swap | ( | T * | , |
| Allocator & | a1, | ||
| Allocator & | a2, | ||
| const ContainerTestCaseData< T > & | tdata | ||
| ) |
Definition at line 178 of file 23.list.special.cpp.
| void test_swap | ( | T * | , |
| Allocator * | , | ||
| const ContainerTestCaseData< T > & | tdata | ||
| ) |
Definition at line 368 of file 23.list.special.cpp.