Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
25.partitions.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.partitions.cpp:

Go to the source code of this file.

Data Structures

struct  GreaterThanPredicate< T >
 

Macros

#define TEST(src, dest, mid, offet)
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class T , class Iterator , class Predicate >
void test_partitions (int line, const char *src, const char *dst, const int value, const std::size_t offset, const Iterator &it, const Predicate *, const T *, bool stable)
 
template<class T , class Iterator >
void test_partitions (const Iterator &it, const T *, bool stable)
 
template<class T >
void test_partitions (const T *, bool stable)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_no_partition
 
int rw_opt_no_stable_partition
 
int rw_opt_no_bidir_iter
 
int rw_opt_no_rnd_iter
 

Macro Definition Documentation

◆ TEST

#define TEST (   src,
  dest,
  mid,
  offet 
)
Value:
test_partitions (__LINE__, src, dest, mid, offet, it, \
(GreaterThanPredicate<T>*)0, (T*)0, stable)
#define T
Definition 17.names.cpp:163
void test_partitions(int line, const char *src, const char *dst, const int value, const std::size_t offset, const Iterator &it, const Predicate *, const T *, bool stable)

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.partitions.cpp - test exercising 25.2.12 [lib.alg.partitions]

$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 38 of file 25.partitions.cpp.

◆ main()

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

Definition at line 342 of file 25.partitions.cpp.

◆ test_partitions() [1/3]

template<class T , class Iterator >
void test_partitions ( const Iterator &  it,
const T *  ,
bool  stable 
)

Definition at line 236 of file 25.partitions.cpp.

◆ test_partitions() [2/3]

template<class T >
void test_partitions ( const T *  ,
bool  stable 
)

Definition at line 296 of file 25.partitions.cpp.

◆ test_partitions() [3/3]

template<class T , class Iterator , class Predicate >
void test_partitions ( int  line,
const char *  src,
const char *  dst,
const int  value,
const std::size_t  offset,
const Iterator &  it,
const Predicate *  ,
const T *  ,
bool  stable 
)

Definition at line 93 of file 25.partitions.cpp.

Variable Documentation

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 291 of file 25.partitions.cpp.

◆ rw_opt_no_partition

int rw_opt_no_partition

Definition at line 289 of file 25.partitions.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 292 of file 25.partitions.cpp.

◆ rw_opt_no_stable_partition

int rw_opt_no_stable_partition

Definition at line 290 of file 25.partitions.cpp.