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

Go to the source code of this file.

Data Structures

struct  Y
 
struct  LessThan
 

Macros

#define TEST(str, val, off, comp)
 

Functions

conv_to_bool operator< (const UserClass &lhs, const Y &rhs)
 
template<class ForwardIterator >
void test_lower_bound (int line, const char *src_str, char val_char, std::size_t result_off, std::size_t ncomp, const ForwardIterator *, const char *itname, bool predicate)
 
template<class ForwardIterator >
void test_lower_bound (const ForwardIterator *, const char *itname, bool predicate)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ TEST

#define TEST (   str,
  val,
  off,
  comp 
)
Value:
test_lower_bound (__LINE__, str, val, std::size_t (off), \
std::size_t (comp), (ForwardIterator*)0, \
itname, predicate)
#define comp
Definition 17.names.cpp:461
#define off
Definition 17.names.cpp:507
#define val
Definition 17.names.cpp:570
#define ForwardIterator
Definition 17.names.cpp:469
void test_lower_bound(int line, const char *src_str, char val_char, std::size_t result_off, std::size_t ncomp, const ForwardIterator *, const char *itname, bool predicate)
const char * str
Definition exec.cpp:170

Function Documentation

◆ main()

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

Definition at line 272 of file 25.lower.bound.cpp.

◆ operator<()

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

Definition at line 64 of file 25.lower.bound.cpp.

◆ test_lower_bound() [1/2]

template<class ForwardIterator >
void test_lower_bound ( const ForwardIterator *  ,
const char *  itname,
bool  predicate 
)

Definition at line 166 of file 25.lower.bound.cpp.

◆ test_lower_bound() [2/2]

template<class ForwardIterator >
void test_lower_bound ( int  line,
const char *  src_str,
char  val_char,
std::size_t  result_off,
std::size_t  ncomp,
const ForwardIterator *  ,
const char *  itname,
bool  predicate 
)

Definition at line 97 of file 25.lower.bound.cpp.