Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
25.swap.cpp File Reference
#include <algorithm>
#include <cstring>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 25.swap.cpp:

Go to the source code of this file.

Macros

#define TEST(seq)
 
#define TEST(seq1, seq2)
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_iter_swap (int line, const char *seq, ForwardIterator1, ForwardIterator2, const T *, bool it_swap, const char *it1name, const char *it2name, const char *fname)
 
template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_iter_swap (ForwardIterator1 it1, ForwardIterator2 it2, const T *, bool it_swap)
 
template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_swap_ranges (int line, const char *seq1, const char *seq2, ForwardIterator1 it1, ForwardIterator2 it2, const T *, const char *it1name, const char *it2name)
 
template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_swap_ranges (ForwardIterator1 it1, ForwardIterator2 it2, const T *)
 
template<class T , class ForwardIterator1 >
void test_swap (ForwardIterator1 it1, const T *, bool test_ranges)
 
template<class T >
void test_swap (const T *, bool test_ranges)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_no_swap
 
int rw_opt_no_swap_ranges
 
int rw_opt_no_iter_swap
 
int rw_opt_no_fwd_iter
 
int rw_opt_no_bidir_iter
 
int rw_opt_no_rnd_iter
 

Macro Definition Documentation

◆ TEST [1/2]

#define TEST (   seq)
Value:
test_iter_swap (__LINE__, seq, it1, it2, (T*)0, it_swap, \
it1name, it2name, fname)
#define T
Definition 17.names.cpp:163
void test_iter_swap(int line, const char *seq, ForwardIterator1, ForwardIterator2, const T *, bool it_swap, const char *it1name, const char *it2name, const char *fname)
Definition 25.swap.cpp:65

◆ TEST [2/2]

#define TEST (   seq1,
  seq2 
)
Value:
test_swap_ranges (__LINE__, seq1, seq2, it1, it2, (T*)0, \
it1name, it2name)
void test_swap_ranges(int line, const char *seq1, const char *seq2, ForwardIterator1 it1, ForwardIterator2 it2, const T *, const char *it1name, const char *it2name)
Definition 25.swap.cpp:142

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.swap.cpp - test exercising 25.2.2 [lib.alg.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 1994-2006 Rogue Wave Software.

Definition at line 37 of file 25.swap.cpp.

◆ main()

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

Definition at line 369 of file 25.swap.cpp.

◆ test_iter_swap() [1/2]

template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_iter_swap ( ForwardIterator1  it1,
ForwardIterator2  it2,
const T *  ,
bool  it_swap 
)

Definition at line 113 of file 25.swap.cpp.

◆ test_iter_swap() [2/2]

template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_iter_swap ( int  line,
const char *  seq,
ForwardIterator1  ,
ForwardIterator2  ,
const T *  ,
bool  it_swap,
const char *  it1name,
const char *  it2name,
const char *  fname 
)

Definition at line 65 of file 25.swap.cpp.

◆ test_swap() [1/2]

template<class T >
void test_swap ( const T *  ,
bool  test_ranges 
)

Definition at line 302 of file 25.swap.cpp.

◆ test_swap() [2/2]

template<class T , class ForwardIterator1 >
void test_swap ( ForwardIterator1  it1,
const T *  ,
bool  test_ranges 
)

Definition at line 266 of file 25.swap.cpp.

◆ test_swap_ranges() [1/2]

template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_swap_ranges ( ForwardIterator1  it1,
ForwardIterator2  it2,
const T *   
)

Definition at line 225 of file 25.swap.cpp.

◆ test_swap_ranges() [2/2]

template<class T , class ForwardIterator1 , class ForwardIterator2 >
void test_swap_ranges ( int  line,
const char *  seq1,
const char *  seq2,
ForwardIterator1  it1,
ForwardIterator2  it2,
const T *  ,
const char *  it1name,
const char *  it2name 
)

Definition at line 142 of file 25.swap.cpp.

Variable Documentation

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 262 of file 25.swap.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 261 of file 25.swap.cpp.

◆ rw_opt_no_iter_swap

int rw_opt_no_iter_swap

Definition at line 260 of file 25.swap.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 263 of file 25.swap.cpp.

◆ rw_opt_no_swap

int rw_opt_no_swap

Definition at line 258 of file 25.swap.cpp.

◆ rw_opt_no_swap_ranges

int rw_opt_no_swap_ranges

Definition at line 259 of file 25.swap.cpp.