Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions
25.equal.range.cpp File Reference
#include <rw/_config.h>
#include <algorithm>
#include <cstring>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 25.equal.range.cpp:

Go to the source code of this file.

Data Structures

struct  Y
 
struct  LessThan
 

Macros

#define TEST(str, val, loff, uoff, comp)
 

Functions

 _RWSTD_NAMESPACE (std)
 
conv_to_bool operator< (const UserClass &lhs, const Y &rhs)
 
conv_to_bool operator< (const Y &lhs, const UserClass &rhs)
 
template<class T , class ForwardIterator >
void test_equal_range (int line, const char *src_str, char val_char, std::size_t result_loff, std::size_t result_uoff, std::size_t ncomp, const ForwardIterator &it, const T *, bool predicate)
 
template<class T , class ForwardIterator >
void test_equal_range (const ForwardIterator &it, const T *, bool predicate)
 
template<class T >
void test_equal_range (const T *, bool predicate)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ TEST

#define TEST (   str,
  val,
  loff,
  uoff,
  comp 
)
Value:
test_equal_range (__LINE__, str, val, std::size_t (loff), \
std::size_t (uoff), std::size_t (comp), \
it, (T*)0, predicate)
#define T
Definition 17.names.cpp:163
#define comp
Definition 17.names.cpp:461
#define val
Definition 17.names.cpp:570
void test_equal_range(int line, const char *src_str, char val_char, std::size_t result_loff, std::size_t result_uoff, std::size_t ncomp, const ForwardIterator &it, const T *, bool predicate)
const char * str
Definition exec.cpp:170

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.equal.range.cpp - test exercising 25.3.3.3 [lib.equal.range]

$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 46 of file 25.equal.range.cpp.

◆ main()

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

Definition at line 326 of file 25.equal.range.cpp.

◆ operator<() [1/2]

conv_to_bool operator< ( const UserClass &  lhs,
const Y &  rhs 
)
inline

Definition at line 93 of file 25.equal.range.cpp.

◆ operator<() [2/2]

conv_to_bool operator< ( const Y &  lhs,
const UserClass &  rhs 
)
inline

Definition at line 99 of file 25.equal.range.cpp.

◆ test_equal_range() [1/3]

template<class T , class ForwardIterator >
void test_equal_range ( const ForwardIterator &  it,
const T *  ,
bool  predicate 
)

Definition at line 211 of file 25.equal.range.cpp.

◆ test_equal_range() [2/3]

template<class T >
void test_equal_range ( const T *  ,
bool  predicate 
)

Definition at line 271 of file 25.equal.range.cpp.

◆ test_equal_range() [3/3]

template<class T , class ForwardIterator >
void test_equal_range ( int  line,
const char *  src_str,
char  val_char,
std::size_t  result_loff,
std::size_t  result_uoff,
std::size_t  ncomp,
const ForwardIterator &  it,
const T *  ,
bool  predicate 
)

Definition at line 135 of file 25.equal.range.cpp.