Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
21.string.swap.cpp File Reference
#include <string>
#include <cstddef>
#include <exception>
#include <rw_strings.h>
#include <rw_driver.h>
#include <rw_allocator.h>
#include <rw_char.h>
#include <rw_new.h>
Include dependency graph for 21.string.swap.cpp:

Go to the source code of this file.

Macros

#define Swap(sig)   StringIds::swap_ ## sig
 
#define TEST(str, arg)
 
#define TEST(sig)
 

Functions

template<class charT , class Traits , class Allocator >
void test_swap (charT *, Traits *, Allocator &a1, Allocator &a2, const StringTestCaseData< charT > &tdata)
 
template<class charT >
std::allocator< charT > make_alloc (SharedAlloc &, std::allocator< charT > *)
 
template<class charT , class Types >
UserAlloc< charT, Types > make_alloc (SharedAlloc &shal, UserAlloc< charT, Types > *)
 
template<class charT , class Traits , class Allocator >
void test_swap (charT *, Traits *, Allocator *, const StringTestCaseData< charT > &tdata)
 
 DEFINE_STRING_TEST_FUNCTIONS (test_swap)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ Swap

#define Swap (   sig)    StringIds::swap_ ## sig

21.string.swap.cpp - string test exercising [lib.string::swap]

$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 2006 Rogue Wave Software.

Definition at line 42 of file 21.string.swap.cpp.

◆ TEST [1/2]

#define TEST (   sig)
Value:
{ \
Swap (sig), sig ## _test_cases, \
sizeof sig ## _test_cases / sizeof *sig ## _test_cases, \
}

◆ TEST [2/2]

#define TEST (   str,
  arg 
)
Value:
{ __LINE__, -1, -1, -1, -1, -1, \
str, sizeof str - 1, arg, sizeof arg - 1, \
0, 0, 0 \
}
const char * str
Definition exec.cpp:170
int arg
Definition locale.cpp:2806

Function Documentation

◆ DEFINE_STRING_TEST_FUNCTIONS()

DEFINE_STRING_TEST_FUNCTIONS ( test_swap  )

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 369 of file 21.string.swap.cpp.

◆ make_alloc() [1/2]

template<class charT >
std::allocator< charT > make_alloc ( SharedAlloc &  ,
std::allocator< charT > *   
)

Definition at line 334 of file 21.string.swap.cpp.

◆ make_alloc() [2/2]

template<class charT , class Types >
UserAlloc< charT, Types > make_alloc ( SharedAlloc &  shal,
UserAlloc< charT, Types > *   
)

Definition at line 340 of file 21.string.swap.cpp.

◆ test_swap() [1/2]

template<class charT , class Traits , class Allocator >
void test_swap ( charT *  ,
Traits *  ,
Allocator &  a1,
Allocator &  a2,
const StringTestCaseData< charT > &  tdata 
)

Definition at line 117 of file 21.string.swap.cpp.

◆ test_swap() [2/2]

template<class charT , class Traits , class Allocator >
void test_swap ( charT *  ,
Traits *  ,
Allocator *  ,
const StringTestCaseData< charT > &  tdata 
)

Definition at line 347 of file 21.string.swap.cpp.