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

Go to the source code of this file.

Data Structures

struct  Less< T >
 

Macros

#define TEST(a, b)    test_min_max (__LINE__, a, b, (T*)0, ppred, test_min)
 
#define TEST(src, min_off, max_off)
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class T , class Predicate >
void test_min_max (int line, const char a, const char b, const T *, const Predicate *ppred, bool test_min)
 
template<class T , class ForwardIterator , class Predicate >
void test_min_max_element (int line, const char *src, const std::size_t min_off, const std::size_t max_off, const ForwardIterator &it, const T *, const Predicate *ppred, bool test_min)
 
template<class T , class Predicate >
void test_min_max (const T *, const Predicate *ppred, bool test_min)
 
template<class T , class ForwardIterator , class Predicate >
void test_min_max_element (const ForwardIterator &it, const T *, const Predicate *ppred, bool test_min)
 
template<class T , class Predicate >
void test_min_max_element (const T *, const Predicate *ppred, bool test_min)
 
template<class T , class Predicate >
void test_alg_min_max (const T *, const Predicate *ppred)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_no_min
 
int rw_opt_no_max
 
int rw_opt_no_min_element
 
int rw_opt_no_max_element
 
int rw_opt_no_predicate
 
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 (   a,
  b 
)     test_min_max (__LINE__, a, b, (T*)0, ppred, test_min)

◆ TEST [2/2]

#define TEST (   src,
  min_off,
  max_off 
)
Value:
test_min_max_element (__LINE__, src, min_off, max_off, it, \
(T*)0, ppred, test_min)
#define T
Definition 17.names.cpp:163
void test_min_max_element(int line, const char *src, const std::size_t min_off, const std::size_t max_off, const ForwardIterator &it, const T *, const Predicate *ppred, bool test_min)

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.min.max.cpp - test exercising 25.3.7 [lib.alg.min.max]

$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.min.max.cpp.

◆ main()

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

Definition at line 404 of file 25.min.max.cpp.

◆ test_alg_min_max()

template<class T , class Predicate >
void test_alg_min_max ( const T *  ,
const Predicate *  ppred 
)

Definition at line 353 of file 25.min.max.cpp.

◆ test_min_max() [1/2]

template<class T , class Predicate >
void test_min_max ( const T *  ,
const Predicate *  ppred,
bool  test_min 
)

Definition at line 226 of file 25.min.max.cpp.

◆ test_min_max() [2/2]

template<class T , class Predicate >
void test_min_max ( int  line,
const char  a,
const char  b,
const T *  ,
const Predicate *  ppred,
bool  test_min 
)

Definition at line 124 of file 25.min.max.cpp.

◆ test_min_max_element() [1/3]

template<class T , class ForwardIterator , class Predicate >
void test_min_max_element ( const ForwardIterator &  it,
const T *  ,
const Predicate *  ppred,
bool  test_min 
)

Definition at line 255 of file 25.min.max.cpp.

◆ test_min_max_element() [2/3]

template<class T , class Predicate >
void test_min_max_element ( const T *  ,
const Predicate *  ppred,
bool  test_min 
)

Definition at line 314 of file 25.min.max.cpp.

◆ test_min_max_element() [3/3]

template<class T , class ForwardIterator , class Predicate >
void test_min_max_element ( int  line,
const char *  src,
const std::size_t  min_off,
const std::size_t  max_off,
const ForwardIterator &  it,
const T *  ,
const Predicate *  ppred,
bool  test_min 
)

Definition at line 162 of file 25.min.max.cpp.

Variable Documentation

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 308 of file 25.min.max.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 307 of file 25.min.max.cpp.

◆ rw_opt_no_max

int rw_opt_no_max

Definition at line 303 of file 25.min.max.cpp.

◆ rw_opt_no_max_element

int rw_opt_no_max_element

Definition at line 305 of file 25.min.max.cpp.

◆ rw_opt_no_min

int rw_opt_no_min

Definition at line 302 of file 25.min.max.cpp.

◆ rw_opt_no_min_element

int rw_opt_no_min_element

Definition at line 304 of file 25.min.max.cpp.

◆ rw_opt_no_predicate

int rw_opt_no_predicate

Definition at line 306 of file 25.min.max.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 309 of file 25.min.max.cpp.